aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared
diff options
context:
space:
mode:
authorkontrollanten <6680299+kontrollanten@users.noreply.github.com>2021-11-09 11:05:35 +0100
committerGitHub <noreply@github.com>2021-11-09 11:05:35 +0100
commite1ab52d7ec7370a6f9f5937192d6003206af1ac0 (patch)
treeaecc8b696b0021e073fd205dd6e126fb4f178e8f /shared
parentc49c366ac320fe5ac3dc08f5891fe5898c1b34e3 (diff)
downloadPeerTube-e1ab52d7ec7370a6f9f5937192d6003206af1ac0.tar.gz
PeerTube-e1ab52d7ec7370a6f9f5937192d6003206af1ac0.tar.zst
PeerTube-e1ab52d7ec7370a6f9f5937192d6003206af1ac0.zip
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 <me@florianbigard.com>
Diffstat (limited to 'shared')
-rw-r--r--shared/extra-utils/cli/cli-command.ts8
1 files changed, 6 insertions, 2 deletions
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 {
17 return `NODE_ENV=test NODE_APP_INSTANCE=${this.server.internalServerNumber}` 17 return `NODE_ENV=test NODE_APP_INSTANCE=${this.server.internalServerNumber}`
18 } 18 }
19 19
20 async execWithEnv (command: string) { 20 async execWithEnv (command: string, configOverride?: any) {
21 return CLICommand.exec(`${this.getEnv()} ${command}`) 21 const prefix = configOverride
22 ? `NODE_CONFIG='${JSON.stringify(configOverride)}'`
23 : ''
24
25 return CLICommand.exec(`${prefix} ${this.getEnv()} ${command}`)
22 } 26 }
23} 27}