Allow passwordless login

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

View file

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