@exreve/exk 1.0.25 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1684,15 +1684,9 @@ async function runDaemon(foreground = false, email) {
|
|
|
1684
1684
|
if (output)
|
|
1685
1685
|
console.log(output);
|
|
1686
1686
|
}
|
|
1687
|
-
//
|
|
1687
|
+
// Exit and let PM2 restart us with the new version
|
|
1688
1688
|
setTimeout(() => {
|
|
1689
|
-
|
|
1690
|
-
execSync('pm2 restart cli', { stdio: 'inherit' });
|
|
1691
|
-
}
|
|
1692
|
-
catch {
|
|
1693
|
-
// If pm2 restart fails, just exit and let pm2 restart us
|
|
1694
|
-
process.exit(0);
|
|
1695
|
-
}
|
|
1689
|
+
process.exit(0);
|
|
1696
1690
|
}, 2000);
|
|
1697
1691
|
});
|
|
1698
1692
|
updateProcess.on('error', (err) => {
|