diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-05 14:14:26 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-05-05 14:24:27 +0200 |
commit | 841ddf8886f87ee694b604d2d0948326a6f9b4bb (patch) | |
tree | 0c1941b9132ae5352e276d85b668ec0f65e2df2a /scripts | |
parent | 257fa0d1a06b0110335ca53fb6cd341b6759fa5a (diff) | |
download | PeerTube-841ddf8886f87ee694b604d2d0948326a6f9b4bb.tar.gz PeerTube-841ddf8886f87ee694b604d2d0948326a6f9b4bb.tar.zst PeerTube-841ddf8886f87ee694b604d2d0948326a6f9b4bb.zip |
Don't call plugin register/unregister methods
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/plugin/install.ts | 7 | ||||
-rwxr-xr-x | scripts/plugin/uninstall.ts | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/scripts/plugin/install.ts b/scripts/plugin/install.ts index 0795d7c93..138f34446 100755 --- a/scripts/plugin/install.ts +++ b/scripts/plugin/install.ts | |||
@@ -32,5 +32,10 @@ async function run () { | |||
32 | await initDatabaseModels(true) | 32 | await initDatabaseModels(true) |
33 | 33 | ||
34 | const toInstall = options.npmName || options.pluginPath | 34 | const toInstall = options.npmName || options.pluginPath |
35 | await PluginManager.Instance.install(toInstall, options.pluginVersion, !!options.pluginPath) | 35 | await PluginManager.Instance.install({ |
36 | toInstall, | ||
37 | version: options.pluginVersion, | ||
38 | fromDisk: !!options.pluginPath, | ||
39 | register: false | ||
40 | }) | ||
36 | } | 41 | } |
diff --git a/scripts/plugin/uninstall.ts b/scripts/plugin/uninstall.ts index 152b651dd..770594685 100755 --- a/scripts/plugin/uninstall.ts +++ b/scripts/plugin/uninstall.ts | |||
@@ -25,5 +25,5 @@ async function run () { | |||
25 | await initDatabaseModels(true) | 25 | await initDatabaseModels(true) |
26 | 26 | ||
27 | const toUninstall = options.npmName | 27 | const toUninstall = options.npmName |
28 | await PluginManager.Instance.uninstall(toUninstall) | 28 | await PluginManager.Instance.uninstall({ npmName: toUninstall, unregister: false }) |
29 | } | 29 | } |