mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +02:00
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>
This commit is contained in:
parent
c49c366ac3
commit
e1ab52d7ec
15 changed files with 394 additions and 35 deletions
|
@ -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}`)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue