From e1ab52d7ec7370a6f9f5937192d6003206af1ac0 Mon Sep 17 00:00:00 2001 From: kontrollanten <6680299+kontrollanten@users.noreply.github.com> Date: Tue, 9 Nov 2021 11:05:35 +0100 Subject: Add migrate-to-object-storage script (#4481) * add migrate-to-object-storage-script closes #4467 * add migrate-to-unique-playlist-filenames script * fix(migrate-to-unique-playlist-filenames): update master/segments256 run updateMasterHLSPlaylist and updateSha256VODSegments after file rename. * Improve move to object storage scripts * PR remarks Co-authored-by: Chocobozzz --- shared/extra-utils/cli/cli-command.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'shared/extra-utils') diff --git a/shared/extra-utils/cli/cli-command.ts b/shared/extra-utils/cli/cli-command.ts index bc1dddc68..ab9738174 100644 --- a/shared/extra-utils/cli/cli-command.ts +++ b/shared/extra-utils/cli/cli-command.ts @@ -17,7 +17,11 @@ export class CLICommand extends AbstractCommand { return `NODE_ENV=test NODE_APP_INSTANCE=${this.server.internalServerNumber}` } - async execWithEnv (command: string) { - return CLICommand.exec(`${this.getEnv()} ${command}`) + async execWithEnv (command: string, configOverride?: any) { + const prefix = configOverride + ? `NODE_CONFIG='${JSON.stringify(configOverride)}'` + : '' + + return CLICommand.exec(`${prefix} ${this.getEnv()} ${command}`) } } -- cgit v1.2.3