From be4743fff0e16ac6cd34aaead28d013f509e86b2 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sun, 5 Jan 2025 09:41:55 +0100 Subject: [PATCH] fix: fix issues with creating the webroot --- installer.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/installer.sh b/installer.sh index ac8688f..b7a3c51 100755 --- a/installer.sh +++ b/installer.sh @@ -173,6 +173,7 @@ ln -s /usr/lib/svrjs/log /var/log/svrjs ln -s /usr/lib/svrjs/config.json /etc/svrjs-config.json node -e 'var fs=require("fs"),config=JSON.parse(fs.readFileSync("/usr/lib/svrjs/config.json").toString());config.wwwroot="/var/www/svrjs",fs.writeFileSync("/usr/lib/svrjs/config.json",JSON.stringify(config,null,2));' > /dev/null if [ -d /usr/lib/svrjs/wwwroot ]; then + mkdir -p /var/www mv /usr/lib/svrjs/wwwroot /var/www/svrjs else mkdir -p /var/www/svrjs