Allow passwordless login

This commit is contained in:
myve 2026-04-21 07:11:10 +00:00
commit c3c41ee90a

View file

@ -17,19 +17,16 @@ do
[ -d ~/.${dir} ] || mkdir -p ~/.${dir}/ [ -d ~/.${dir} ] || mkdir -p ~/.${dir}/
done done
# Check for MYVNC_VNCPASS variable # Configure tigervnc auth if MYVNC_VNCPASS is set
if [ -z ${MYVNC_VNCPASS} ] if [ ${MYVNC_VNCPASS} ]
then then
echo "MYVNC_VNCPASS env variable is missing" #
exit 1
fi
# Configure tigervnc auth
if [ ! -f ~/.config/tigervnc/passwd ] if [ ! -f ~/.config/tigervnc/passwd ]
then then
echo "${MYVNC_VNCPASS}" | vncpasswd -f >~/.config/tigervnc/passwd echo "${MYVNC_VNCPASS}" | vncpasswd -f >~/.config/tigervnc/passwd
chmod 0600 ~/.config/tigervnc/passwd chmod 0600 ~/.config/tigervnc/passwd
fi fi
fi
# Remove VNCPASS env # Remove VNCPASS env
unset MYVNC_VNCPASS unset MYVNC_VNCPASS