mirror of
https://git.myvelabs.com/novnc/archlinux.git
synced 2026-06-17 02:49:16 +00:00
Allow passwordless login
This commit is contained in:
parent
be4043cc44
commit
c3c41ee90a
1 changed files with 8 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue