From 92ef975288bac629702aac6e4f98f6a9a841c625 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Mon, 21 Aug 2023 20:17:48 +0200 Subject: [PATCH] Add permission re-granting for SVR.JS updater --- updater.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/updater.sh b/updater.sh index 5ed7d89..b9173b9 100755 --- a/updater.sh +++ b/updater.sh @@ -27,8 +27,14 @@ fi ##Copy SVR.JS files echo "Copying SVR.JS files..." unzip svrjs.zip -d /usr/lib/svrjs svr.compressed modules.compressed svr.js > /dev/null -unzip svrjs.zip -d /usr/lib/svrjs logviewer.js loghighlighter.js > /dev/null +chown svrjs:svrjs /usr/lib/svrjs/svr.compressed /usr/lib/svrjs/modules.compressed /usr/lib/svrjs/svr.js +chmod 775 /usr/lib/svrjs/svr.compressed /usr/lib/svrjs/modules.compressed /usr/lib/svrjs/svr.js +unzip svrjs.zip -d /usr/lib/svrjs logviewer.js loghighlight.js > /dev/null +chown svrjs:svrjs /usr/lib/svrjs/logviewer.js /usr/lib/svrjs/loghighlight.js +chmod 775 /usr/lib/svrjs/logviewer.js /usr/lib/svrjs/loghighlight.js unzip svrjs.zip -d /usr/lib/svrjs svrpasswd.js > /dev/null +chown svrjs:svrjs /usr/lib/svrjs/svrpasswd.js +chmod 775 /usr/lib/svrjs/svrpasswd.js pushd . cd /usr/lib/svrjs node svr.js > /dev/null