fix: format the SVR.JS configuration file
This commit is contained in:
parent
19c9c219f5
commit
c3dfd2678b
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ node svr.js > /dev/null
|
||||||
popd
|
popd
|
||||||
ln -s /usr/lib/svrjs/log /var/log/svrjs
|
ln -s /usr/lib/svrjs/log /var/log/svrjs
|
||||||
ln -s /usr/lib/svrjs/config.json /etc/svrjs-config.json
|
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
|
mkdir -p /var/www/svrjs
|
||||||
mv /usr/lib/svrjs/index.html /var/www/svrjs
|
mv /usr/lib/svrjs/index.html /var/www/svrjs
|
||||||
mv /usr/lib/svrjs/tests.html /var/www/svrjs
|
mv /usr/lib/svrjs/tests.html /var/www/svrjs
|
||||||
|
|
Loading…
Reference in a new issue