If launch.sh launched from a symbolic link, websockify fail to be released . Now he seeks also specified with the argument --web folder

This commit is contained in:
José A. Fernández 2015-02-14 00:48:24 +01:00
parent f675e03ccc
commit 6468069e29
1 changed files with 7 additions and 0 deletions

View File

@ -102,7 +102,14 @@ else
fi
echo "Starting webserver and WebSockets proxy on port ${PORT}"
if [ -e "${HERE}/websockify" ]; then
${HERE}/websockify --web ${WEB} ${CERT:+--cert ${CERT}} ${PORT} ${VNC_DEST} &
elif [ -e "${WEB}/utils/websockify" ]; then
${WEB}/utils/websockify --web ${WEB} ${CERT:+--cert ${CERT}} ${PORT} ${VNC_DEST} &
else
echo "Warning: could not find websockify"
fi
proxy_pid="$!"
sleep 1
if ! ps -p ${proxy_pid} >/dev/null; then