fix: fix issues with creating the webroot
This commit is contained in:
parent
704b513d0b
commit
be4743fff0
1 changed files with 1 additions and 0 deletions
|
@ -173,6 +173,7 @@ 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,null,2));' > /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
|
||||||
if [ -d /usr/lib/svrjs/wwwroot ]; then
|
if [ -d /usr/lib/svrjs/wwwroot ]; then
|
||||||
|
mkdir -p /var/www
|
||||||
mv /usr/lib/svrjs/wwwroot /var/www/svrjs
|
mv /usr/lib/svrjs/wwwroot /var/www/svrjs
|
||||||
else
|
else
|
||||||
mkdir -p /var/www/svrjs
|
mkdir -p /var/www/svrjs
|
||||||
|
|
Loading…
Reference in a new issue