File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,15 +14,15 @@ if [ "${START_XVFB:-$SE_START_XVFB}" = true ]; then
1414 fi
1515 done
1616 VNC_NO_PASSWORD=${VNC_NO_PASSWORD:- $SE_VNC_NO_PASSWORD }
17- if [ ! -z $ VNC_NO_PASSWORD ]; then
17+ if [ " ${VNC_NO_PASSWORD} " = " true " ] || [ " ${ VNC_NO_PASSWORD} " = " 1 " ]; then
1818 echo " Starting VNC server without password authentication"
1919 X11VNC_OPTS=
2020 else
2121 X11VNC_OPTS=-usepw
2222 fi
2323
2424 VNC_VIEW_ONLY=${VNC_VIEW_ONLY:- $SE_VNC_VIEW_ONLY }
25- if [ ! -z $ VNC_VIEW_ONLY ]; then
25+ if [ " ${VNC_VIEW_ONLY} " = " true " ] || [ " ${ VNC_VIEW_ONLY} " = " 1 " ]; then
2626 echo " Starting VNC server with viewonly option"
2727 X11VNC_OPTS=" ${X11VNC_OPTS} -viewonly"
2828 fi
Original file line number Diff line number Diff line change @@ -1661,9 +1661,9 @@ Then, you would use in your VNC client:
16611661If you get a prompt asking for a password, it is: ` secret ` . If you wish to change this,
16621662you can set the environment variable ` SE_VNC_PASSWORD ` .
16631663
1664- If you want to run VNC without password authentication you can set the environment variable ` SE_VNC_NO_PASSWORD=1 ` .
1664+ If you want to run VNC without password authentication you can set the environment variable ` SE_VNC_NO_PASSWORD=true ` .
16651665
1666- If you want to run VNC in view-only mode you can set the environment variable ` SE_VNC_VIEW_ONLY=1 ` .
1666+ If you want to run VNC in view-only mode you can set the environment variable ` SE_VNC_VIEW_ONLY=true ` .
16671667
16681668If you want to modify the open file descriptor limit for the VNC server process you can set the environment variable ` SE_VNC_ULIMIT=4096 ` .
16691669
You can’t perform that action at this time.
0 commit comments