From c3c41ee90a26dc479218ac61acdfd4a666a486b7 Mon Sep 17 00:00:00 2001 From: myve Date: Tue, 21 Apr 2026 07:11:10 +0000 Subject: [PATCH] Allow passwordless login --- firefox/entrypoint | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/firefox/entrypoint b/firefox/entrypoint index 803eecf..9e95180 100755 --- a/firefox/entrypoint +++ b/firefox/entrypoint @@ -17,18 +17,15 @@ do [ -d ~/.${dir} ] || mkdir -p ~/.${dir}/ done -# Check for MYVNC_VNCPASS variable -if [ -z ${MYVNC_VNCPASS} ] +# Configure tigervnc auth if MYVNC_VNCPASS is set +if [ ${MYVNC_VNCPASS} ] then - echo "MYVNC_VNCPASS env variable is missing" - exit 1 -fi - -# Configure tigervnc auth -if [ ! -f ~/.config/tigervnc/passwd ] -then - echo "${MYVNC_VNCPASS}" | vncpasswd -f >~/.config/tigervnc/passwd - chmod 0600 ~/.config/tigervnc/passwd + # + if [ ! -f ~/.config/tigervnc/passwd ] + then + echo "${MYVNC_VNCPASS}" | vncpasswd -f >~/.config/tigervnc/passwd + chmod 0600 ~/.config/tigervnc/passwd + fi fi # Remove VNCPASS env