From 8a180cff92a942cc1a2a842611869e09c3513e91 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Sun, 24 Mar 2019 22:41:24 +0100 Subject: [PATCH] fix maintenance controller --- install | 1 + wo/cli/plugins/maintenance.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/install b/install index fc6a79e..6294fc4 100644 --- a/install +++ b/install @@ -389,6 +389,7 @@ wo_install() { } + wo_upgrade_nginx() { { diff --git a/wo/cli/plugins/maintenance.py b/wo/cli/plugins/maintenance.py index c48ff3e..baf5312 100644 --- a/wo/cli/plugins/maintenance.py +++ b/wo/cli/plugins/maintenance.py @@ -13,7 +13,7 @@ import configparser import os -def wo_stack_hook(app): +def wo_maintenance_hook(app): pass @@ -52,6 +52,6 @@ class WOMaintenanceController(CementBaseController): def load(app): # register the plugin class.. this only happens if the plugin is enabled - handler.register(WOUpdateController) + handler.register(WOMaintenanceController) # register a hook (function) to run after arguments are parsed. - hook.register('post_argument_parsing', wo_update_hook) + hook.register('post_argument_parsing', wo_maintenance_hook)