From e8eca0f9b59d059dac8397c0cf1478576fc42b0c Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Mon, 16 May 2022 08:12:17 +0200 Subject: [PATCH] always set vnc password new on rerunning update-installer.sh -launch-xfce --- usr/bin/archboot-update-installer.sh | 2 ++ usr/lib/archboot/update-installer.sh | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/bin/archboot-update-installer.sh b/usr/bin/archboot-update-installer.sh index 210a5fbbc..860f3fcf7 100755 --- a/usr/bin/archboot-update-installer.sh +++ b/usr/bin/archboot-update-installer.sh @@ -91,6 +91,8 @@ if [[ "${_L_XFCE}" == "1" ]]; then echo -e "\033[1mStep 4/4:\033[0m Starting avahi-daemon ..." systemctl start avahi-daemon.service fi + echo "Setting VNC password /etc/tigervnc/passwd to ${_VNC_PW} ..." + echo "${_VNC_PW}" | vncpasswd -f > /etc/tigervnc/passwd echo -e "Launching XFCE now, logging is done on \033[1m/dev/tty8\033[0m ..." startxfce4 >/dev/tty8 2>&1 echo -e "To relaunch XFCE desktop use: \033[92mstartxfce4\033[0m" diff --git a/usr/lib/archboot/update-installer.sh b/usr/lib/archboot/update-installer.sh index 4ff1ee121..c783b763b 100644 --- a/usr/lib/archboot/update-installer.sh +++ b/usr/lib/archboot/update-installer.sh @@ -530,6 +530,4 @@ Type=Application Name=Tigervnc Exec=x0vncserver -rfbauth /etc/tigervnc/passwd EOF - echo "Setting VNC password /etc/tigervnc/passwd to ${_VNC_PW} ..." - echo "${_VNC_PW}" | vncpasswd -f > /etc/tigervnc/passwd }