|
|
@@ -35,12 +35,6 @@ configure_start_sh() {
|
|
|
|
|
|
# Helper function to configure start.sh for a single website
|
|
|
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
|
|
|
cat > /home/kiosk/start.sh <<EOF
|
|
|
#!/bin/bash
|
|
|
@@ -58,12 +52,6 @@ configure_tabs() {
|
|
|
tab_urls+="'$url' " # Ensure URLs are properly quoted
|
|
|
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
|
|
|
cat > /home/kiosk/start.sh <<EOF
|
|
|
#!/bin/bash
|