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
14
14
fi
15
15
done
16
16
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
18
18
echo " Starting VNC server without password authentication"
19
19
X11VNC_OPTS=
20
20
else
21
21
X11VNC_OPTS=-usepw
22
22
fi
23
23
24
24
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
26
26
echo " Starting VNC server with viewonly option"
27
27
X11VNC_OPTS=" ${X11VNC_OPTS} -viewonly"
28
28
fi
Original file line number Diff line number Diff line change @@ -1661,9 +1661,9 @@ Then, you would use in your VNC client:
1661
1661
If you get a prompt asking for a password, it is: ` secret ` . If you wish to change this,
1662
1662
you can set the environment variable ` SE_VNC_PASSWORD ` .
1663
1663
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 ` .
1665
1665
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 ` .
1667
1667
1668
1668
If you want to modify the open file descriptor limit for the VNC server process you can set the environment variable ` SE_VNC_ULIMIT=4096 ` .
1669
1669
You can’t perform that action at this time.
0 commit comments