diff --git a/ee/cli/plugins/stack_services.py b/ee/cli/plugins/stack_services.py index 634c6d4a..7536db74 100644 --- a/ee/cli/plugins/stack_services.py +++ b/ee/cli/plugins/stack_services.py @@ -51,11 +51,18 @@ class EEStackStatusController(CementBaseController): Log.info(self, "PHP5-FPM is not installed") if self.app.pargs.mysql: - if EEVariables.ee_mysql_host is "localhost": - services = services + ['mysql'] + if ((EEVariables.ee_mysql_host is "localhost") or + (EEVariables.ee_mysql_host is "127.0.0.1")): + if (EEAptGet.is_installed(self, 'mysql-server') or + EEAptGet.is_installed(self, 'percona-server-server-5.6') or + EEAptGet.is_installed(self, 'mariadb-server')): + services = services + ['mysql'] + else: + Log.info(self, "MySQL is not installed") else: - Log.warn(self, "Remote MySQL found," - "Unable to start MySQL service") + Log.warn(self, "Remote MySQL found, " + "Unable to check MySQL service status") + if self.app.pargs.postfix: if EEAptGet.is_installed(self, 'postfix'): services = services + ['postfix']