feat: support x11vnc args - X11VNC_ARGS (bug #101)

Docker env X11VNC_ARGS
This commit is contained in:
Doro Wu
2019-02-23 17:04:45 +08:00
parent e6441d418a
commit 0adc0da8e8
3 changed files with 6 additions and 1 deletions
+4
View File
@@ -8,6 +8,10 @@ if [ -n "$VNC_PASSWORD" ]; then
export VNC_PASSWORD=
fi
if [ -n "$X11VNC_ARGS" ]; then
sed -i "s/^command=x11vnc.*/& ${X11VNC_ARGS}/" /etc/supervisor/conf.d/supervisord.conf
fi
if [ -n "$RESOLUTION" ]; then
sed -i "s/1024x768/$RESOLUTION/" /usr/local/bin/xvfb.sh
fi