Simplified usage of dialog box

This commit is contained in:
Simon Beginn
2021-03-27 00:57:56 +01:00
parent 1fe71ce6e9
commit 488802ffe2

View File

@@ -27,11 +27,11 @@ ORIG_API_SERVER_ESCAPED=$(echo "$ORIG_API_SERVER" | sed -e 's/\./\\./g')
ORIG_AUTH_SERVER_ESCAPED=$(echo "$ORIG_AUTH_SERVER" | sed -e 's/\./\\./g')
get_fake_api() {
FAKE_API_SERVER=$(dialog --title "Fake API address" --inputbox "Please enter the address from your faked API (with a valid HTTPS certificate). If you don't have one yourself, just use 'pritunl-api.simonmicro.de'." $winY $winX 2>&1 >/dev/tty)
FAKE_API_SERVER=$(dialog --title "Fake API address" --inputbox "Please enter the address from your faked API (with a valid HTTPS certificate). If you don't have one yourself, just leave the default." $winY $winX 'pritunl-api.simonmicro.de' 2>&1 >/dev/tty)
FAKE_API_SERVER_ESCAPED=$(echo "$FAKE_API_SERVER" | sed -e 's/\./\\./g')
FAKE_AUTH_SERVER="$FAKE_API_SERVER\/auth\/"
FAKE_AUTH_SERVER_ESCAPED=$(echo "$FAKE_AUTH_SERVER" | sed -e 's/\./\\./g')
echo "Please wait, this script replacing all necessary parts of the server. This can take up to several minutes..."
echo "Please wait, while this script is modifying all necessary parts of the server. This can take up to several minutes..."
}
show_info() {