mirror of
https://github.com/MatthewL246/pretendo-docker.git
synced 2026-04-25 08:04:02 -05:00
Modfified for create pkken-tournament local env.
This commit is contained in:
parent
400a96ca44
commit
d740eaa9cf
|
|
@ -229,32 +229,32 @@ if_not_verbose() {
|
|||
# with MinGW. All scripts are designed to be run inside a WSL2 distro when running on Windows, and running them in other
|
||||
# environments tends to cause various hard-to-debug issues, mainly when interacting with Docker.
|
||||
|
||||
windows_detected=false
|
||||
# windows_detected=false
|
||||
|
||||
# $OS seems to be the most reliable, as it was set in all the environments I checked
|
||||
if [[ "${OS:-}" = "Windows_NT" ]]; then
|
||||
windows_detected=true
|
||||
fi
|
||||
# $OSTYPE was also set in all the environments I checked
|
||||
if [[ "${OSTYPE:-}" =~ msys|cygwin ]]; then
|
||||
windows_detected=true
|
||||
fi
|
||||
# uname should always work as a backup, even if the environment variables are not set as expected
|
||||
if [[ "$(uname -so | tr "[:upper:]" "[:lower:]")" =~ mingw|msys|cygwin ]]; then
|
||||
windows_detected=true
|
||||
fi
|
||||
# # $OS seems to be the most reliable, as it was set in all the environments I checked
|
||||
# if [[ "${OS:-}" = "Windows_NT" ]]; then
|
||||
# windows_detected=true
|
||||
# fi
|
||||
# # $OSTYPE was also set in all the environments I checked
|
||||
# if [[ "${OSTYPE:-}" =~ msys|cygwin ]]; then
|
||||
# windows_detected=true
|
||||
# fi
|
||||
# # uname should always work as a backup, even if the environment variables are not set as expected
|
||||
# if [[ "$(uname -so | tr "[:upper:]" "[:lower:]")" =~ mingw|msys|cygwin ]]; then
|
||||
# windows_detected=true
|
||||
# fi
|
||||
|
||||
if [[ "$windows_detected" = true ]]; then
|
||||
print_error "It looks like you are using Windows, but you are not running this script inside a WSL2 distro."
|
||||
echo
|
||||
print_info "All pretendo-docker scripts are designed to be run inside your WSL2 distro when running on Windows."
|
||||
print_info "However, it looks like you are running this script in a different Bash on Windows environment (like Git Bash, Cygwin, MSYS2, or MinGW). Running in these environments tends to cause various hard-to-debug issues."
|
||||
echo
|
||||
echo "Note that this issue can be caused by running the script from a Windows shell (like PowerShell or Command Prompt) or by double-clicking it, as Windows will automatically run it with your default app for opening .sh files."
|
||||
echo
|
||||
print_info "${term_bold}Please run this script directly from Bash in your primary WSL2 distro instead."
|
||||
exit 1
|
||||
fi
|
||||
# if [[ "$windows_detected" = true ]]; then
|
||||
# print_error "It looks like you are using Windows, but you are not running this script inside a WSL2 distro."
|
||||
# echo
|
||||
# print_info "All pretendo-docker scripts are designed to be run inside your WSL2 distro when running on Windows."
|
||||
# print_info "However, it looks like you are running this script in a different Bash on Windows environment (like Git Bash, Cygwin, MSYS2, or MinGW). Running in these environments tends to cause various hard-to-debug issues."
|
||||
# echo
|
||||
# echo "Note that this issue can be caused by running the script from a Windows shell (like PowerShell or Command Prompt) or by double-clicking it, as Windows will automatically run it with your default app for opening .sh files."
|
||||
# echo
|
||||
# print_info "${term_bold}Please run this script directly from Bash in your primary WSL2 distro instead."
|
||||
# exit 1
|
||||
# fi
|
||||
|
||||
# Argument parsing framework
|
||||
# Uses a lot of Bash parameter expansion tricks: https://www.gnu.org/software/bash/manual/bash.html#Shell-Parameter-Expansion
|
||||
|
|
|
|||
20
scripts/mitmproxy-ca-cert.pem
Normal file
20
scripts/mitmproxy-ca-cert.pem
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
-----BEGIN CERTIFICATE-----
|
||||
MIIDNTCCAh2gAwIBAgIUThBrYCaoXE79vJIDX3VefYvY1LIwDQYJKoZIhvcNAQEL
|
||||
BQAwKDESMBAGA1UEAwwJbWl0bXByb3h5MRIwEAYDVQQKDAltaXRtcHJveHkwHhcN
|
||||
MjQxMjEzMTUyMjA1WhcNMzQxMjEzMTUyMjA1WjAoMRIwEAYDVQQDDAltaXRtcHJv
|
||||
eHkxEjAQBgNVBAoMCW1pdG1wcm94eTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC
|
||||
AQoCggEBAKt9QbTkVhhO3OndhmiD3R+zCO3r8ra+QBvhTdrpy/LD10fPIbMwU1QF
|
||||
k5wRwRYnnVIY9OWyBMPK9OXHmcy1Vb6p4m24zLSIFXWk78VddfJMCylf1UTGJQJ0
|
||||
vSXACw86HrqHmuXMyWt/4cVdpn+LNdQXOfNpSLXOlkGLpT2RCRSu1NQFxJGr8sES
|
||||
PXivvsroXQHHr5i15JL29nBxhZmlzQq/mIti6DLoZtJNqD4iSMyaRJCXgDR5b/xQ
|
||||
SO032DONsdc3YBu9LWQBGjr2LQpmh/RostfzpDhFlS1bSYhzzA7al/wE+7N2FbeP
|
||||
OydHLCBesSBO1Vw9Oio9aemX8DzmP/MCAwEAAaNXMFUwDwYDVR0TAQH/BAUwAwEB
|
||||
/zATBgNVHSUEDDAKBggrBgEFBQcDATAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYE
|
||||
FGGqsBYGPYFmE07txvOAQVe0boYrMA0GCSqGSIb3DQEBCwUAA4IBAQA1hT1zA5Q4
|
||||
fuaLBQ2aCuD72t7ULwZzYhDXnQlB+bdDglshCkFgi6u4J71sCqvhq25f6NxWuLtm
|
||||
1Q0rfwrZdB5+oEGpgtzcdKXrWoo7ATgAYXj8pzqr8h0+R3JDLpzJM2uDJksB6tTT
|
||||
ZVIhiKyUZ4qQqBQ0sCs3PPIbctiUY0NwQI+2l4+0Cub2NP2nWxCoi4LMrHLc0aYS
|
||||
aOfd7QlwBv1ab0x0aq3itZZgyO+Q+W/E1MK1feMsL+Nf05m/J8MOWPDc9VA41DiD
|
||||
DLfq2Ngfbkazjvw2EBae4ZJtF7Zcft4Gld4s6/m7VBjbEbQF++Qk6buBeH4/meP7
|
||||
9SmhFpRQng9t
|
||||
-----END CERTIFICATE-----
|
||||
|
|
@ -87,6 +87,7 @@ echo "PN_SMM_ACCOUNT_GRPC_API_KEY=$account_grpc_api_key" >>./super-mario-maker.l
|
|||
echo "PN_SPLATOON_ACCOUNT_GRPC_API_KEY=$account_grpc_api_key" >>./splatoon.local.env
|
||||
echo "PN_MINECRAFT_ACCOUNT_GRPC_API_KEY=$account_grpc_api_key" >>./minecraft-wiiu.local.env
|
||||
echo "PN_PIKMIN3_ACCOUNT_GRPC_API_KEY=$account_grpc_api_key" >>./pikmin-3.local.env
|
||||
echo "PN_POKKENTOURNAMENT_ACCOUNT_GRPC_API_KEY=$account_grpc_api_key" >>./pokken-tournament.local.env
|
||||
|
||||
# Generate a secret key for MinIO
|
||||
minio_secret_key=$(generate_password 32)
|
||||
|
|
@ -138,6 +139,10 @@ echo "PN_MINECRAFT_KERBEROS_PASSWORD=$minecraft_kerberos_password" >>./minecraft
|
|||
pikmin3_kerberos_password=$(generate_password 32)
|
||||
echo "PN_PIKMIN3_KERBEROS_PASSWORD=$pikmin3_kerberos_password" >>./pikmin-3.local.env
|
||||
|
||||
# Generate a Kerberos password for the Pokken-Tournament server
|
||||
pokkentournament_kerberos_password=$(generate_password 32)
|
||||
echo "PN_POKKENTOURNAMENT_KERBEROS_PASSWORD=$pokkentournament_kerberos_password" >>./pokken-tournament.local.env
|
||||
|
||||
# Generate an AES key for the Miiverse servers
|
||||
miiverse_aes_key=$(generate_hex 64)
|
||||
echo "PN_MIIVERSE_API_CONFIG_AES_KEY=$miiverse_aes_key" >>./miiverse-api.local.env
|
||||
|
|
@ -156,6 +161,7 @@ echo "PN_SMM_SECURE_SERVER_HOST=$server_ip" >>./super-mario-maker.local.env
|
|||
echo "PN_SPLATOON_SECURE_SERVER_HOST=$server_ip" >>./splatoon.local.env
|
||||
echo "PN_MINECRAFT_SECURE_SERVER_HOST=$server_ip" >>./minecraft-wiiu.local.env
|
||||
echo "PN_PIKMIN3_SECURE_SERVER_HOST=$server_ip" >>./pikmin-3.local.env
|
||||
echo "PN_POKKENTOURNAMENT_SECURE_SERVER_HOST=$server_ip" >>./pokken-tournament.local.env
|
||||
|
||||
# Get the Wii U IP address
|
||||
if [[ -n "$wiiu_ip" ]]; then
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user