@geekbeer/minion 2.68.4 → 2.68.6
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/package.json +1 -1
- package/win/lib/process-manager.js +12 -18
package/package.json
CHANGED
|
@@ -218,32 +218,26 @@ function buildAllowedCommands(procMgr, agentConfig = {}) {
|
|
|
218
218
|
|
|
219
219
|
commands['restart-agent'] = {
|
|
220
220
|
description: 'Restart the minion agent process',
|
|
221
|
-
spawnArgs: ['powershell', ['-NoProfile', '-ExecutionPolicy', 'Bypass', '-
|
|
222
|
-
buildRestartScript(stopBlock, startBlock, agentPort, apiToken)]],
|
|
221
|
+
spawnArgs: ['powershell', ['-NoProfile', '-ExecutionPolicy', 'Bypass', '-Command',
|
|
222
|
+
`& '${buildRestartScript(stopBlock, startBlock, agentPort, apiToken)}'`]],
|
|
223
223
|
deferred: true,
|
|
224
224
|
}
|
|
225
225
|
commands['update-agent'] = {
|
|
226
226
|
description: 'Update @geekbeer/minion to latest version and restart',
|
|
227
|
-
spawnArgs: ['powershell', ['-NoProfile', '-ExecutionPolicy', 'Bypass', '-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
'
|
|
232
|
-
agentPort,
|
|
233
|
-
apiToken,
|
|
234
|
-
)]],
|
|
227
|
+
spawnArgs: ['powershell', ['-NoProfile', '-ExecutionPolicy', 'Bypass', '-Command',
|
|
228
|
+
`& '${buildUpdateScript(
|
|
229
|
+
'npm install -g @geekbeer/minion@latest',
|
|
230
|
+
stopBlock, startBlock, 'update-agent', agentPort, apiToken,
|
|
231
|
+
)}'`]],
|
|
235
232
|
deferred: true,
|
|
236
233
|
}
|
|
237
234
|
commands['update-agent-dev'] = {
|
|
238
235
|
description: 'Update @geekbeer/minion from Verdaccio (dev) and restart',
|
|
239
|
-
spawnArgs: ['powershell', ['-NoProfile', '-ExecutionPolicy', 'Bypass', '-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
'
|
|
244
|
-
agentPort,
|
|
245
|
-
apiToken,
|
|
246
|
-
)]],
|
|
236
|
+
spawnArgs: ['powershell', ['-NoProfile', '-ExecutionPolicy', 'Bypass', '-Command',
|
|
237
|
+
`& '${buildUpdateScript(
|
|
238
|
+
'npm install -g @geekbeer/minion@latest --registry http://verdaccio:4873',
|
|
239
|
+
stopBlock, startBlock, 'update-agent-dev', agentPort, apiToken,
|
|
240
|
+
)}'`]],
|
|
247
241
|
deferred: true,
|
|
248
242
|
}
|
|
249
243
|
commands['status-services'] = {
|