1
0
mirror of https://github.com/fcwu/docker-ubuntu-vnc-desktop synced 2026-08-05 16:12:41 +02:00

feat: fixed resolution

This commit is contained in:
DoroWu
2018-02-25 18:50:22 +08:00
parent d3c2654e53
commit a70016bee5
3 changed files with 16 additions and 1 deletions
+5 -1
View File
@@ -14,6 +14,10 @@ if [ -n "$VNC_PASSWORD" ]; then
export VNC_PASSWORD=
fi
cd /usr/lib/web && ./run.py > /var/log/web.log 2>&1 &
if [ -n "$RESOLUTION" ]; then
sed -i "s/1024x768/$RESOLUTION/" /etc/supervisor/conf.d/supervisord.conf
fi
cd /usr/lib/web && ./run.py 2>&1 &
nginx -c /etc/nginx/nginx.conf
exec /bin/tini -- /usr/bin/supervisord -n
+2
View File
@@ -18,6 +18,8 @@ app = Flask(
CONFIG = os.environ.get('CONFIG') or 'config.Development'
app.config.from_object('config.Default')
app.config.from_object(CONFIG)
FIRST = 'RESOLUTION' not in os.environ
# logging
import logging