pm2 fix
This commit is contained in:
1 parent
dfa00d15b4
commit
cd71972cca
2 files changed
+3
-2
No files matched your search
@@ -2,7 +2,7 @@
|
||||
const config = require('./config.json'),
|
||||
ex = require('./execute')
|
||||
|
||||
ex('pm2 jlist').then(out => {
|
||||
ex(`sudo -H -u ${config.pm2_user} bash -c "pm2 jlist"`).then(out => {
|
||||
out = JSON.parse(out)
|
||||
|
||||
console.log()
|
||||
|
||||
+2
-1
@@ -5,5 +5,6 @@
|
||||
"temps": {
|
||||
"warn": 0.85,
|
||||
"high": 0.6
|
||||
}
|
||||
},
|
||||
"pm2_user": "mathias"
|
||||
}
|
||||
Reference in new issue
Block a user