mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
Fix initialization for plugins (#6421)
Co-authored-by: yacchin1205 <968739+yacchin1205@users.noreply.github.com>
This commit is contained in:
parent
6c9730bc53
commit
c16ce64ea0
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue