From 9b68663c951c90188fa3c09956f440db38c669c9 Mon Sep 17 00:00:00 2001 From: DeathByDenim Date: Fri, 1 Jul 2022 09:29:30 -0400 Subject: [PATCH] Fix web deploy logic for ssl --- scripts/deploy_webserver.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deploy_webserver.sh b/scripts/deploy_webserver.sh index 75ba2a5..c522eb2 100755 --- a/scripts/deploy_webserver.sh +++ b/scripts/deploy_webserver.sh @@ -26,7 +26,7 @@ for file in /var/www/html/*\.html; do sed -i $file -e "/SERVERSTATE/r $(dirname "$0")/../website/_state/online.html" sed -i $file -e "/SERVERSTATE/d" done -if [ x"$NOSSL" = "x" ] || [ $NOSSL -eq 1 ]; then +if [ x"$NOSSL" != "x" ] && [ $NOSSL -eq 1 ]; then for file in /var/www/html/js/*\.js; do sed -i $file -e s/"wss:"/"ws:"/g sed -i $file -e s/"https:"/"http:"/g