aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKablersalat <crt@adastra7.net>2025-02-24 19:27:33 +0100
committerKablersalat <crt@adastra7.net>2025-02-24 19:27:33 +0100
commit46480c69192f40fa638a036baa738072368c8b9b (patch)
tree90f3ecffe2b04bb1c31896238e7d16333024df0f
parentdeab96cf3683cf860f1ca22e2e0ec85e2c5df34e (diff)
fix vnc passwd in interactive mode
-rw-r--r--installer.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/installer.sh b/installer.sh
index 4fa2bd4..221699d 100644
--- a/installer.sh
+++ b/installer.sh
@@ -83,7 +83,8 @@ configure_start_sh() {
if [ "$DIALOG_RESULT" = "1" ]; then
WEBSITE=$(dialog --title "Enter Website URL" --inputbox "Please enter the URL for the simple website:" 8 50 "https://www.example.com" 3>&1 1>&2 2>&3 3>&-)
- set_start_script_single $SCALE_FACTOR $WEBSITE
+ VNC_PASSWORD=$(dialog --title "VNC Password" --inputbox "Please enter the VNC password:" 8 50 "" 3>&1 1>&2 2>&3 3>&-)
+ set_start_script_single $SCALE_FACTOR $WEBSITE $VNC_PASSWORD
elif [ "$DIALOG_RESULT" = "2" ]; then
TAB_COUNT=$(dialog --title "Number of Tabs" --inputbox "Enter number of tabs:" 8 50 "3" 3>&1 1>&2 2>&3 3>&-)
local tab_urls=()
@@ -91,7 +92,8 @@ configure_start_sh() {
URL=$(dialog --title "Enter URL for Tab $i" --inputbox "Enter URL:" 8 50 "http://example$i.com" 3>&1 1>&2 2>&3 3>&-)
tab_urls+=("$URL")
done
- configure_tabs $SCALE_FACTOR "${tab_urls[@]}"
+ VNC_PASSWORD=$(dialog --title "VNC Password" --inputbox "Please enter the VNC password:" 8 50 "" 3>&1 1>&2 2>&3 3>&-)
+ configure_tabs $SCALE_FACTOR $VNC_PASSWORD "${tab_urls[@]}"
fi
else # Automated mode with URLs as arguments
local scaling_factor=$1