Skip to content
Permalink
Browse files

Try to fix reported bug: https://forum.openmediavault.org/index.php/T…

…hread/28594-OMV5-setup-notifications-don-t-work/

Signed-off-by: Volker Theile <votdev@gmx.de>
  • Loading branch information...
votdev committed Sep 10, 2019
1 parent 719ccca commit 9b82eedf0fd9aa18a0c90a8890858695c4277444
Showing with 5 additions and 5 deletions.
  1. +5 −5 deb/openmediavault/usr/share/openmediavault/engined/rpc/config.inc
@@ -124,7 +124,7 @@ class Config extends \OMV\Rpc\ServiceAbstract {
$modulev);
}
// Append module to list of modules that have to be processed.
$processModules[$modulev] = $inst;
$processModules[mb_strtolower($modulev)] = $inst;
// Remove module name from list of dirty modules. Note, the
// array must be re-indexed.
$dirtyModules = array_values(array_diff($dirtyModules,
@@ -156,15 +156,15 @@ class Config extends \OMV\Rpc\ServiceAbstract {
}
foreach ($tsort->sort() as $name) {
$this->debug("Deploying configuration for module '%s'", $name);
$name = strtolower($name);
$inst = $processModules[$name];
$uri = "org.openmediavault.module.service.%s.%s";
$processModules[$name]->preDeploy();
$inst->preDeploy();
$notifyDispatcher->notify(OMV_NOTIFY_EVENT,
sprintf($uri, $name, "predeploy"));
$processModules[$name]->deploy();
$inst->deploy();
$notifyDispatcher->notify(OMV_NOTIFY_EVENT,
sprintf($uri, $name, "deploy"));
$processModules[$name]->postDeploy();
$inst->postDeploy();
$notifyDispatcher->notify(OMV_NOTIFY_EVENT,
sprintf($uri, $name, "postdeploy"));
}

0 comments on commit 9b82eed

Please sign in to comment.
You can’t perform that action at this time.