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:
Eli Bosley
2025-01-28 09:12:15 -05:00
parent a8211cef7d
commit 32f9c50227

View File

@@ -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);
}