This commit is contained in:
José A. Fernández 2015-02-17 10:16:50 +00:00
commit ffdffdda48
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