Simply exit process to restart.

This commit is contained in:
mmcwilliams 2018-01-12 17:48:26 -05:00
parent 66b3711118
commit 63eee43386
2 changed files with 4 additions and 4 deletions

View File

@ -521,7 +521,9 @@ function seq () {
}
function update (req, res, next) {
exec('sh ./scripts/update.sh')
exec('sh ./scripts/update.sh', (err, stdio, stderr) => {
process.exit()
})
}
function index (req, res, next) {

View File

@ -2,6 +2,4 @@
sudo -u pi -i<< EOF
cd /home/pi/intval3 && git pull
EOF
cd /home/pi/intval3 && sudo pm2 restart process.json
EOF