Browse Source

Fixed dependency of Postfix and Dovecot with MySQL in stack migration

bugfixes
gau1991 10 years ago
parent
commit
9b5c2068f2
  1. 10
      ee/cli/plugins/stack_migrate.py

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

Loading…
Cancel
Save