From 3624548251fa6541b060b64586dbb934ee29be5f Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Tue, 27 Oct 2020 11:25:14 +0100 Subject: [PATCH] Enable MariaDB service after upgrade --- wo/cli/plugins/stack_migrate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wo/cli/plugins/stack_migrate.py b/wo/cli/plugins/stack_migrate.py index be084a0..bcfcb8c 100644 --- a/wo/cli/plugins/stack_migrate.py +++ b/wo/cli/plugins/stack_migrate.py @@ -59,6 +59,7 @@ class WOStackMigrateController(CementBaseController): WOFileUtils.create_symlink( self, ['/etc/mysql/mariadb.cnf', '/etc/mysql/my.cnf']) WOShellExec.cmd_exec(self, 'systemctl daemon-reload') + WOShellExec.cmd_exec(self, 'systemctl enable mariadb') post_pref(self, WOVar.wo_mysql, []) @expose(hide=True)