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)