fix: make start.sh compatible with TigerVNC 1.10.1

This commit is contained in:
DCsunset 2020-02-02 23:32:15 -08:00
parent 83aad9df0c
commit 14464d8606

View file

@ -9,10 +9,10 @@ tigervnc_path="/tigervnc-${tigervnc_version}.x86_64/usr/bin"
# Start TigerVNC # Start TigerVNC
if [ ! -z $VNC_PASSWD ]; then if [ ! -z $VNC_PASSWD ]; then
${tigervnc_path}/vncpasswd -f <<< "$VNC_PASSWD" > "$HOME/.vnc/passwd" ${tigervnc_path}/vncpasswd -f <<< "$VNC_PASSWD" > "$HOME/.vnc/passwd"
${tigervnc_path}/vncserver -localhost no :0 ${tigervnc_path}/vncserver :0
else else
${tigervnc_path}/vncpasswd -f <<< "" > "$HOME/.vnc/passwd" ${tigervnc_path}/vncpasswd -f <<< "" > "$HOME/.vnc/passwd"
${tigervnc_path}/vncserver --I-KNOW-THIS-IS-INSECURE -SecurityTypes None -localhost no :0 ${tigervnc_path}/vncserver -SecurityTypes None :0
fi fi
# Start noVNC # Start noVNC