mirror of
https://github.com/fcwu/docker-ubuntu-vnc-desktop
synced 2025-12-06 16:32:47 +01:00
Set paths after handling dynamic prefix path
This commit is contained in:
parent
fe7954da78
commit
0cb3248487
1 changed files with 10 additions and 10 deletions
|
|
@ -59,14 +59,6 @@ if [ -n "$HTTP_PASSWORD" ]; then
|
|||
sed -i 's|#_HTTP_PASSWORD_#||' /etc/nginx/sites-enabled/default
|
||||
fi
|
||||
|
||||
# novnc websockify
|
||||
ln -s "/usr/local/lib/web/frontend$PREFIX_PATH/static/websockify" "/usr/local/lib/web/frontend$PREFIX_PATH/static/novnc/utils/websockify"
|
||||
chmod +x "/usr/local/lib/web/frontend$PREFIX_PATH/static/websockify/run"
|
||||
|
||||
# clearup
|
||||
PASSWORD=
|
||||
HTTP_PASSWORD=
|
||||
|
||||
# dynamic prefix path renaming
|
||||
if [ -n "$DYNAMIC_PREFIX_PATH" ]; then
|
||||
PREFIX_PATH="$DYNAMIC_PREFIX_PATH"
|
||||
|
|
@ -76,4 +68,12 @@ if [ -n "$DYNAMIC_PREFIX_PATH" ]; then
|
|||
cat /etc/nginx/sites-enabled/default
|
||||
fi
|
||||
|
||||
# novnc websockify
|
||||
ln -s "/usr/local/lib/web/frontend$PREFIX_PATH/static/websockify" "/usr/local/lib/web/frontend$PREFIX_PATH/static/novnc/utils/websockify"
|
||||
chmod +x "/usr/local/lib/web/frontend$PREFIX_PATH/static/websockify/run"
|
||||
|
||||
# clearup
|
||||
PASSWORD=+
|
||||
HTTP_PASSWORD=
|
||||
|
||||
exec /bin/tini -- /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf
|
||||
Loading…
Reference in a new issue