Add permission re-granting for SVR.JS updater
This commit is contained in:
parent
5bb8a422cb
commit
92ef975288
1 changed files with 7 additions and 1 deletions
|
@ -27,8 +27,14 @@ fi
|
||||||
##Copy SVR.JS files
|
##Copy SVR.JS files
|
||||||
echo "Copying 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 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
|
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 .
|
pushd .
|
||||||
cd /usr/lib/svrjs
|
cd /usr/lib/svrjs
|
||||||
node svr.js > /dev/null
|
node svr.js > /dev/null
|
||||||
|
|
Loading…
Reference in a new issue