Fixed installPlugins script.

This commit is contained in:
SamTV12345 2024-03-14 18:53:05 +01:00
parent bef467b201
commit 2aa67fb04f

View file

@ -1,7 +1,7 @@
'use strict';
import {writeFileSync} from 'fs'
import {manager, installedPluginsPath} from "ep_etherpad-lite/static/js/pluginfw/installer";
import {linkInstaller, installedPluginsPath} from "ep_etherpad-lite/static/js/pluginfw/installer";
import {PackageData} from "ep_etherpad-lite/node/types/PackageInfo";
const pluginsModule = require('ep_etherpad-lite/static/js/pluginfw/plugins');
@ -27,7 +27,7 @@ const persistInstalledPlugins = async () => {
async function run() {
for (const plugin of plugins) {
await manager.install(plugin);
await linkInstaller.installPlugin(plugin);
}
}