From 257aabecb080655f1211d0829bdcecc695373a54 Mon Sep 17 00:00:00 2001 From: Lee Yarwood Date: Tue, 9 Jul 2019 12:12:43 +0100 Subject: [PATCH] launch.sh: Check for a local websockify directory Previously launch.sh would check both for the existence of a local websockify file and /websockify/run file. This initial check should really be for a local websockify directory as in packaged environments a file could very well be the actual executable leading to launch.sh incorrectly attempting to use a local version of websockify. --- kasmweb/utils/launch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kasmweb/utils/launch.sh b/kasmweb/utils/launch.sh index 0978b33..6138b91 100755 --- a/kasmweb/utils/launch.sh +++ b/kasmweb/utils/launch.sh @@ -128,7 +128,7 @@ if [ -n "${KEY}" ]; then fi # try to find websockify (prefer local, try global, then download local) -if [[ -e ${HERE}/websockify ]]; then +if [[ -d ${HERE}/websockify ]]; then WEBSOCKIFY=${HERE}/websockify/run if [[ ! -x $WEBSOCKIFY ]]; then