Enable MariaDB service after upgrade

This commit is contained in:
VirtuBox
2020-10-27 11:25:14 +01:00
parent 518d687ec1
commit 3624548251

View File

@@ -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)