mirror of
https://github.com/unraid/api.git
synced 2026-01-04 07:29:48 -06:00
Update api/src/unraid-api/cli/start.command.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -19,7 +19,7 @@ export class StartCommand extends CommandRunner {
|
||||
this.logger.info('Starting the Unraid API');
|
||||
|
||||
// Update PM2 first if necessary
|
||||
const { stderr: updateErr, stdout: updateOut } = await execa(`${PM2_PATH} update`);
|
||||
const { stderr: updateErr, stdout: updateOut } = await execa(PM2_PATH, ['update']);
|
||||
if (updateOut) {
|
||||
this.logger.log(updateOut);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user