From c3dfd2678b659e50db3e1f185812a50c3ec61c78 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sun, 5 Jan 2025 09:24:16 +0100 Subject: [PATCH] fix: format the SVR.JS configuration file --- installer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer.sh b/installer.sh index 205cc1b..7ce6d9a 100755 --- a/installer.sh +++ b/installer.sh @@ -169,7 +169,7 @@ node svr.js > /dev/null popd 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));' > /dev/null +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 mkdir -p /var/www/svrjs mv /usr/lib/svrjs/index.html /var/www/svrjs mv /usr/lib/svrjs/tests.html /var/www/svrjs