fix maintenance controller
This commit is contained in:
1
install
1
install
@@ -389,6 +389,7 @@ wo_install() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
wo_upgrade_nginx() {
|
wo_upgrade_nginx() {
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import configparser
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
||||||
def wo_stack_hook(app):
|
def wo_maintenance_hook(app):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
@@ -52,6 +52,6 @@ class WOMaintenanceController(CementBaseController):
|
|||||||
|
|
||||||
def load(app):
|
def load(app):
|
||||||
# register the plugin class.. this only happens if the plugin is enabled
|
# 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.
|
# 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)
|
||||||
|
|||||||
Reference in New Issue
Block a user