From 6468069e29e64a718cc5ae0d49d83c7188f162a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20A=2E=20Fern=C3=A1ndez?= Date: Sat, 14 Feb 2015 00:48:24 +0100 Subject: [PATCH] If launch.sh launched from a symbolic link, websockify fail to be released . Now he seeks also specified with the argument --web folder --- utils/launch.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/utils/launch.sh b/utils/launch.sh index 1581f17a..17f98fe9 100755 --- a/utils/launch.sh +++ b/utils/launch.sh @@ -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