mirror of
https://git.myvelabs.com/novnc/archlinux.git
synced 2026-06-17 02:49:16 +00:00
Add SecurityTypes=none if MYVNC_VNCPASS isn't set
This commit is contained in:
parent
c3c41ee90a
commit
308f10a35d
1 changed files with 3 additions and 2 deletions
|
|
@ -20,12 +20,13 @@ done
|
|||
# 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
|
||||
else
|
||||
echo "SecurityTypes=none" >~/.config/tigervnc/config
|
||||
fi
|
||||
|
||||
# Remove VNCPASS env
|
||||
|
|
@ -48,7 +49,7 @@ else
|
|||
fi
|
||||
|
||||
# VNC config
|
||||
cat >~/.config/tigervnc/config <<- vncconfig
|
||||
cat >>~/.config/tigervnc/config <<- vncconfig
|
||||
session=i3
|
||||
dpi=192
|
||||
geometry=1920x1080
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue