mirror of
https://github.com/fcwu/docker-ubuntu-vnc-desktop
synced 2025-12-06 08:22:31 +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,15 +59,7 @@ if [ -n "$HTTP_PASSWORD" ]; then
|
||||||
sed -i 's|#_HTTP_PASSWORD_#||' /etc/nginx/sites-enabled/default
|
sed -i 's|#_HTTP_PASSWORD_#||' /etc/nginx/sites-enabled/default
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# novnc websockify
|
# dynamic prefix path renaming
|
||||||
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
|
if [ -n "$DYNAMIC_PREFIX_PATH" ]; then
|
||||||
PREFIX_PATH="$DYNAMIC_PREFIX_PATH"
|
PREFIX_PATH="$DYNAMIC_PREFIX_PATH"
|
||||||
echo "DYNAMIC_PREFIX_PATH: $PREFIX_PATH"
|
echo "DYNAMIC_PREFIX_PATH: $PREFIX_PATH"
|
||||||
|
|
@ -76,4 +68,12 @@ if [ -n "$DYNAMIC_PREFIX_PATH" ]; then
|
||||||
cat /etc/nginx/sites-enabled/default
|
cat /etc/nginx/sites-enabled/default
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec /bin/tini -- /usr/bin/supervisord -n -c /etc/supervisor/supervisord.conf
|
# 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