mirror of
https://git.myvelabs.com/novnc/archlinux.git
synced 2025-12-17 22:56:20 +00:00
Update base/app/init.d/10-novnc.sh
This commit is contained in:
parent
e5d81b0f05
commit
44afc7d6e2
1 changed files with 2 additions and 3 deletions
|
|
@ -25,12 +25,11 @@ then
|
|||
unset _MYVNC_PROXYPATH
|
||||
elif [ ${MYVNC_PROXYPATH} ]
|
||||
then
|
||||
_MYVNC_PROXYPATH=$(echo ${MYVNC_PROXYPATH%/} | sed "s|^.*/||")
|
||||
_MYVNC_PROXYPATH=$(echo ${MYVNC_PROXYPATH} | sed "s|^/*||g;s|/*$||g;s|/*/|/|g")
|
||||
sed -i "/UI.initSetting/ s|websockify|${_MYVNC_PROXYPATH}/&|" /app/novnc/app/ui.js
|
||||
fi
|
||||
|
||||
# Start NoVNC
|
||||
/app/novnc/utils/novnc_proxy \
|
||||
--listen 6080 \
|
||||
--vnc ${MYVNC_VNCSERVER_HOST:-localhost}:${MYVNC_VNCSERVER_PORT:-5900} \
|
||||
--vnc ${MYVNC_VNCLISTEN_HOST:-localhost}:${MYVNC_VNCLISTEN_PORT:-5900} \
|
||||
--file-only &
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue