File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- #! /usr/bin/env bash
1+ #! /usr/bin/env bash
22
33set -euo pipefail
44IFS=$' \n\t '
@@ -70,12 +70,14 @@ Examples:
7070 bash <(curl -Ls https://raw.githubusercontent.com/masterking32/MasterDnsVPN/main/server_linux_install.sh)
7171
7272 # Install a specific release version:
73- bash <(curl -Ls https://raw.githubusercontent.com/masterking32/MasterDnsVPN/main/server_linux_install.sh) --version v1.2.3
73+ bash <(curl -Ls https://raw.githubusercontent.com/masterking32/MasterDnsVPN/main/server_linux_install.sh) --version v2026.04.12.234117-978faee
7474
7575 # Uninstall MasterDnsVPN:
7676 bash <(curl -Ls https://raw.githubusercontent.com/masterking32/MasterDnsVPN/main/server_linux_install.sh) --uninstall
7777USAGE
78- }select_release_artifact() {
78+ }
79+
80+ select_release_artifact () {
7981 local arch=" $1 "
8082 local version=" ${2:- } "
8183 local legacy=0
@@ -721,7 +723,7 @@ if ./"$EXECUTABLE" $EXECUTABLE_ARGS > "$TMP_LOG" 2>&1; then
721723 KEY_GENERATED=true
722724fi
723725
724- # Try running normally to trigger key generation (older versions)
726+ # Try running normally to trigger key generation (older versions < commit 86d1d9d )
725727if [[ " $KEY_GENERATED " != true ]]; then
726728 ./" $EXECUTABLE " > " $TMP_LOG " 2>&1 &
727729 APP_PID=$!
@@ -735,7 +737,7 @@ if [[ "$KEY_GENERATED" != true ]]; then
735737 done
736738 kill " $APP_PID " 2> /dev/null || true
737739 wait " $APP_PID " 2> /dev/null || true
738-
740+
739741 if [[ " $READY " == true ]]; then
740742 log_success " Key generated."
741743 EXECUTABLE_ARGS=" "
You can’t perform that action at this time.
0 commit comments