Simply exit process to restart.
This commit is contained in:
parent
66b3711118
commit
63eee43386
4
index.js
4
index.js
|
@ -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) {
|
||||
|
|
|
@ -3,5 +3,3 @@
|
|||
sudo -u pi -i<< EOF
|
||||
cd /home/pi/intval3 && git pull
|
||||
EOF
|
||||
|
||||
cd /home/pi/intval3 && sudo pm2 restart process.json
|
Loading…
Reference in New Issue