From 9b5c2068f2169ba570cba4d8b5097cd337a0f7bb Mon Sep 17 00:00:00 2001 From: gau1991 Date: Thu, 5 Mar 2015 13:15:46 +0530 Subject: [PATCH] Fixed dependency of Postfix and Dovecot with MySQL in stack migration --- ee/cli/plugins/stack_migrate.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ee/cli/plugins/stack_migrate.py b/ee/cli/plugins/stack_migrate.py index c00460bb..3f29f970 100644 --- a/ee/cli/plugins/stack_migrate.py +++ b/ee/cli/plugins/stack_migrate.py @@ -75,6 +75,16 @@ class EEStackMigrateController(CementBaseController): log=False) # Install MariaDB + apt_packages = EEVariables.ee_mysql + + # If PHP is installed then install php5-mysql + if EEAptGet.is_installed(self, "php5-fpm"): + apt_packages = apt_packages + ["php5-mysql"] + + # If mail server is installed then install dovecot-sql and postfix-sql + if EEAptGet.is_installed(self, "dovecot-core"): + apt_packages = apt_packages + ["dovecot-mysql", "postfix-mysql"] + apt_packages = EEVariables.ee_mysql + ["php5-mysql"] Log.info(self, "Updating apt-cache, please wait ...") EEAptGet.update(self)