Ver Fonte

fix vnc passwd in interactive mode

Kablersalat há 9 meses atrás
pai
commit
46480c6919
1 ficheiros alterados com 4 adições e 2 exclusões
  1. 4 2
      installer.sh

+ 4 - 2
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