Fix initialization for plugins (#6421)

Co-authored-by: yacchin1205 <968739+yacchin1205@users.noreply.github.com>
This commit is contained in:
Satoshi Yazawa 2024-06-02 19:58:18 +09:00 committed by GitHub
parent 6c9730bc53
commit c16ce64ea0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,6 @@
'use strict'; 'use strict';
import {linkInstaller} from "ep_etherpad-lite/static/js/pluginfw/installer"; import {linkInstaller, checkForMigration} from "ep_etherpad-lite/static/js/pluginfw/installer";
import {persistInstalledPlugins} from "./commonPlugins"; import {persistInstalledPlugins} from "./commonPlugins";
import fs from "node:fs"; import fs from "node:fs";
const settings = require('ep_etherpad-lite/node/utils/Settings'); const settings = require('ep_etherpad-lite/node/utils/Settings');
@ -56,6 +56,7 @@ const install = ()=> {
} }
(async () => { (async () => {
await checkForMigration();
await run(); await run();
await persistInstalledPlugins(); await persistInstalledPlugins();
})(); })();
@ -84,6 +85,7 @@ const remove = (plugins: string[])=>{
} }
(async () => { (async () => {
await checkForMigration();
await walk(); await walk();
})(); })();
} }