From: Chocobozzz Date: Wed, 17 Jul 2019 13:49:40 +0000 (+0200) Subject: Add ability to disable plugins/themes from CLI X-Git-Tag: v1.4.0-rc.1~102 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=66e001c848c009412c65cbce41be344d8985fd83;p=github%2FChocobozzz%2FPeerTube.git Add ability to disable plugins/themes from CLI --- diff --git a/server.ts b/server.ts index 67abf4b5c..b75c78b07 100644 --- a/server.ts +++ b/server.ts @@ -119,6 +119,7 @@ import { PluginsCheckScheduler } from './server/lib/schedulers/plugins-check-sch cli .option('--no-client', 'Start PeerTube without client interface') + .option('--no-plugins', 'Start PeerTube without plugins/themes enabled') .parse(process.argv) // ----------- App ----------- @@ -261,7 +262,7 @@ async function startApplication () { updateStreamingPlaylistsInfohashesIfNeeded() .catch(err => logger.error('Cannot update streaming playlist infohashes.', { err })) - await PluginManager.Instance.registerPluginsAndThemes() + if (cli.plugins) await PluginManager.Instance.registerPluginsAndThemes() // Make server listening server.listen(port, hostname, () => {