@geekbeer/minion 2.67.0 → 2.67.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/package.json
CHANGED
|
@@ -54,10 +54,10 @@ function detectProcessManager() {
|
|
|
54
54
|
* @param {string} startCmd - Command/script block to start the agent
|
|
55
55
|
* @returns {string} - Path to the generated update script (.ps1)
|
|
56
56
|
*/
|
|
57
|
-
function buildUpdateScript(npmInstallCmd, stopCmd, startCmd) {
|
|
57
|
+
function buildUpdateScript(npmInstallCmd, stopCmd, startCmd, scriptName = 'update-agent') {
|
|
58
58
|
const dataDir = path.join(os.homedir(), '.minion')
|
|
59
|
-
const scriptPath = path.join(dataDir,
|
|
60
|
-
const logPath = path.join(dataDir,
|
|
59
|
+
const scriptPath = path.join(dataDir, `${scriptName}.ps1`)
|
|
60
|
+
const logPath = path.join(dataDir, `${scriptName}.log`)
|
|
61
61
|
|
|
62
62
|
// PowerShell script content: stop → install → start, with logging
|
|
63
63
|
// The stopCmd kills all child processes of the agent. Since this script
|
|
@@ -136,6 +136,7 @@ function buildAllowedCommands(procMgr) {
|
|
|
136
136
|
'npm install -g @geekbeer/minion@latest --registry http://verdaccio:4873',
|
|
137
137
|
stopBlock,
|
|
138
138
|
startBlock,
|
|
139
|
+
'update-agent-dev',
|
|
139
140
|
)]],
|
|
140
141
|
deferred: true,
|
|
141
142
|
}
|
|
@@ -164,6 +165,7 @@ function buildAllowedCommands(procMgr) {
|
|
|
164
165
|
'npm install -g @geekbeer/minion@latest --registry http://verdaccio:4873',
|
|
165
166
|
'nssm stop minion-agent',
|
|
166
167
|
'nssm start minion-agent',
|
|
168
|
+
'update-agent-dev',
|
|
167
169
|
)]],
|
|
168
170
|
deferred: true,
|
|
169
171
|
}
|
|
@@ -196,6 +198,7 @@ function buildAllowedCommands(procMgr) {
|
|
|
196
198
|
'npm install -g @geekbeer/minion@latest --registry http://verdaccio:4873',
|
|
197
199
|
'net stop minion-agent',
|
|
198
200
|
'net start minion-agent',
|
|
201
|
+
'update-agent-dev',
|
|
199
202
|
)]],
|
|
200
203
|
deferred: true,
|
|
201
204
|
}
|