Detect Peertube bad version at startup.
This commit is contained in:
parent
d0b44c3486
commit
25da6b6e0d
@ -11,6 +11,11 @@ let OPTIONS: RegisterServerOptions | undefined
|
|||||||
async function register (options: RegisterServerOptions): Promise<any> {
|
async function register (options: RegisterServerOptions): Promise<any> {
|
||||||
OPTIONS = options
|
OPTIONS = options
|
||||||
|
|
||||||
|
// This is a trick to check that peertube is at least in version 3.2.0
|
||||||
|
if (!options.peertubeHelpers.plugin) {
|
||||||
|
throw new Error('Your peertube version is not correct. This plugin is not compatible with Peertube < 3.2.0.')
|
||||||
|
}
|
||||||
|
|
||||||
await migrateSettings(options)
|
await migrateSettings(options)
|
||||||
|
|
||||||
await initSettings(options)
|
await initSettings(options)
|
||||||
|
Loading…
Reference in New Issue
Block a user