@geekbeer/minion 2.4.0 → 2.4.1
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/lib/process-manager.js +3 -3
- package/package.json +1 -1
package/lib/process-manager.js
CHANGED
|
@@ -51,7 +51,7 @@ function buildAllowedCommands(procMgr) {
|
|
|
51
51
|
}
|
|
52
52
|
commands['update-agent'] = {
|
|
53
53
|
description: 'Update @geekbeer/minion to latest version and restart',
|
|
54
|
-
command: `npm
|
|
54
|
+
command: `npm install -g @geekbeer/minion@latest && ${SUDO}systemctl restart minion-agent`,
|
|
55
55
|
deferred: true,
|
|
56
56
|
}
|
|
57
57
|
commands['restart-display'] = {
|
|
@@ -70,7 +70,7 @@ function buildAllowedCommands(procMgr) {
|
|
|
70
70
|
}
|
|
71
71
|
commands['update-agent'] = {
|
|
72
72
|
description: 'Update @geekbeer/minion to latest version and restart',
|
|
73
|
-
command: `npm
|
|
73
|
+
command: `npm install -g @geekbeer/minion@latest && ${SUDO}supervisorctl restart minion-agent`,
|
|
74
74
|
deferred: true,
|
|
75
75
|
}
|
|
76
76
|
commands['restart-display'] = {
|
|
@@ -85,7 +85,7 @@ function buildAllowedCommands(procMgr) {
|
|
|
85
85
|
// Standalone mode: limited commands
|
|
86
86
|
commands['update-agent'] = {
|
|
87
87
|
description: 'Update @geekbeer/minion to latest version',
|
|
88
|
-
command: 'npm
|
|
88
|
+
command: 'npm install -g @geekbeer/minion@latest',
|
|
89
89
|
}
|
|
90
90
|
commands['status-services'] = {
|
|
91
91
|
description: 'Show agent process info',
|