From e5d81b0f057260561e54bc9e77dd1e02dd9c8b63 Mon Sep 17 00:00:00 2001 From: myve Date: Wed, 24 Jul 2024 02:15:39 +0000 Subject: [PATCH] Update base/app/init.d/10-nginx.sh --- base/app/init.d/10-nginx.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/app/init.d/10-nginx.sh b/base/app/init.d/10-nginx.sh index c369e18..41d180b 100755 --- a/base/app/init.d/10-nginx.sh +++ b/base/app/init.d/10-nginx.sh @@ -1,11 +1,11 @@ #!/usr/bin/env bash -# Reformat path +# Reformat proxy path if [[ ${MYVNC_PROXYPATH} == "/" ]] then unset _MYVNC_PROXYPATH elif [ ${MYVNC_PROXYPATH} ] then - _MYVNC_PROXYPATH=$(echo ${MYVNC_PROXYPATH%/} | sed "s|^.*/||;s|^|/|") + _MYVNC_PROXYPATH=$(echo ${MYVNC_PROXYPATH} | sed "s|^/*||g;s|/*$||g;s|/*/|/|g;s|^|/|") fi # Add novnc virtual proxy conf