Преглед изворни кода

forgor to remove vnc password asking after setting type whoppsi

Kablersalat пре 9 месеци
родитељ
комит
4af0f52ef2
1 измењених фајлова са 0 додато и 12 уклоњено
  1. 0 12
      configure.sh

+ 0 - 12
configure.sh

@@ -35,12 +35,6 @@ configure_start_sh() {
 
 
 # Helper function to configure start.sh for a single website
 # Helper function to configure start.sh for a single website
 set_start_script_single() {
 set_start_script_single() {
-    VNC_PASSWORD=$(dialog --title "VNC Password" --inputbox "Please enter the VNC password:" 8 50 "" 3>&1 1>&2 2>&3 3>&-)
-    mkdir -p /home/kiosk/.vnc
-    rm -f /home/kiosk/.vnc/passwd  # Remove existing password file if it exists
-    echo "$VNC_PASSWORD" | vncpasswd -f > /home/kiosk/.vnc/passwd
-    chmod 600 /home/kiosk/.vnc/passwd
-
     # Write the script with properly formatted commands
     # Write the script with properly formatted commands
     cat > /home/kiosk/start.sh <<EOF
     cat > /home/kiosk/start.sh <<EOF
 #!/bin/bash
 #!/bin/bash
@@ -58,12 +52,6 @@ configure_tabs() {
         tab_urls+="'$url' "  # Ensure URLs are properly quoted
         tab_urls+="'$url' "  # Ensure URLs are properly quoted
     done
     done
 
 
-    VNC_PASSWORD=$(dialog --title "VNC Password" --inputbox "Please enter the VNC password:" 8 50 "" 3>&1 1>&2 2>&3 3>&-)
-    mkdir -p /home/kiosk/.vnc
-    rm -f /home/kiosk/.vnc/passwd  # Remove existing password file if it exists
-    echo "$VNC_PASSWORD" | vncpasswd -f > /home/kiosk/.vnc/passwd
-    chmod 600 /home/kiosk/.vnc/passwd
-
     # Write the script with properly formatted commands
     # Write the script with properly formatted commands
     cat > /home/kiosk/start.sh <<EOF
     cat > /home/kiosk/start.sh <<EOF
 #!/bin/bash
 #!/bin/bash