|
@ -51,11 +51,18 @@ class EEStackStatusController(CementBaseController): |
|
|
Log.info(self, "PHP5-FPM is not installed") |
|
|
Log.info(self, "PHP5-FPM is not installed") |
|
|
|
|
|
|
|
|
if self.app.pargs.mysql: |
|
|
if self.app.pargs.mysql: |
|
|
if EEVariables.ee_mysql_host is "localhost": |
|
|
if ((EEVariables.ee_mysql_host is "localhost") or |
|
|
services = services + ['mysql'] |
|
|
(EEVariables.ee_mysql_host is "127.0.0.1")): |
|
|
else: |
|
|
if (EEAptGet.is_installed(self, 'mysql-server') or |
|
|
Log.warn(self, "Remote MySQL found," |
|
|
EEAptGet.is_installed(self, 'percona-server-server-5.6') or |
|
|
"Unable to start MySQL service") |
|
|
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 check MySQL service status") |
|
|
|
|
|
|
|
|
if self.app.pargs.postfix: |
|
|
if self.app.pargs.postfix: |
|
|
if EEAptGet.is_installed(self, 'postfix'): |
|
|
if EEAptGet.is_installed(self, 'postfix'): |
|
|
services = services + ['postfix'] |
|
|
services = services + ['postfix'] |
|
@ -115,11 +122,18 @@ class EEStackStatusController(CementBaseController): |
|
|
Log.info(self, "PHP5-FPM is not installed") |
|
|
Log.info(self, "PHP5-FPM is not installed") |
|
|
|
|
|
|
|
|
if self.app.pargs.mysql: |
|
|
if self.app.pargs.mysql: |
|
|
if EEVariables.ee_mysql_host is "localhost": |
|
|
if ((EEVariables.ee_mysql_host is "localhost") or |
|
|
services = services + ['mysql'] |
|
|
(EEVariables.ee_mysql_host is "127.0.0.1")): |
|
|
else: |
|
|
if (EEAptGet.is_installed(self, 'mysql-server') or |
|
|
Log.warn(self, "Remote MySQL found," |
|
|
EEAptGet.is_installed(self, 'percona-server-server-5.6') or |
|
|
"Unable to stop MySQL service") |
|
|
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 check MySQL service status") |
|
|
|
|
|
|
|
|
if self.app.pargs.postfix: |
|
|
if self.app.pargs.postfix: |
|
|
if EEAptGet.is_installed(self, 'postfix'): |
|
|
if EEAptGet.is_installed(self, 'postfix'): |
|
|
services = services + ['postfix'] |
|
|
services = services + ['postfix'] |
|
@ -179,11 +193,18 @@ class EEStackStatusController(CementBaseController): |
|
|
Log.info(self, "PHP5-FPM is not installed") |
|
|
Log.info(self, "PHP5-FPM is not installed") |
|
|
|
|
|
|
|
|
if self.app.pargs.mysql: |
|
|
if self.app.pargs.mysql: |
|
|
if EEVariables.ee_mysql_host is "localhost": |
|
|
if ((EEVariables.ee_mysql_host is "localhost") or |
|
|
services = services + ['mysql'] |
|
|
(EEVariables.ee_mysql_host is "127.0.0.1")): |
|
|
else: |
|
|
if (EEAptGet.is_installed(self, 'mysql-server') or |
|
|
Log.warn(self, "Remote MySQL found," |
|
|
EEAptGet.is_installed(self, 'percona-server-server-5.6') or |
|
|
"Unable to restart MySQL service") |
|
|
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 check MySQL service status") |
|
|
|
|
|
|
|
|
if self.app.pargs.postfix: |
|
|
if self.app.pargs.postfix: |
|
|
if EEAptGet.is_installed(self, 'postfix'): |
|
|
if EEAptGet.is_installed(self, 'postfix'): |
|
|
services = services + ['postfix'] |
|
|
services = services + ['postfix'] |
|
@ -243,11 +264,18 @@ class EEStackStatusController(CementBaseController): |
|
|
Log.info(self, "PHP5-FPM is not installed") |
|
|
Log.info(self, "PHP5-FPM is not installed") |
|
|
|
|
|
|
|
|
if self.app.pargs.mysql: |
|
|
if self.app.pargs.mysql: |
|
|
if EEVariables.ee_mysql_host is "localhost": |
|
|
if ((EEVariables.ee_mysql_host is "localhost") or |
|
|
services = services + ['mysql'] |
|
|
(EEVariables.ee_mysql_host is "127.0.0.1")): |
|
|
else: |
|
|
if (EEAptGet.is_installed(self, 'mysql-server') or |
|
|
Log.warn(self, "Remote MySQL found," |
|
|
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 check MySQL service status") |
|
|
"Unable to check MySQL service status") |
|
|
|
|
|
|
|
|
if self.app.pargs.postfix: |
|
|
if self.app.pargs.postfix: |
|
|
if EEAptGet.is_installed(self, 'postfix'): |
|
|
if EEAptGet.is_installed(self, 'postfix'): |
|
|
services = services + ['postfix'] |
|
|
services = services + ['postfix'] |
|
@ -306,11 +334,18 @@ class EEStackStatusController(CementBaseController): |
|
|
Log.info(self, "PHP5-FPM is not installed") |
|
|
Log.info(self, "PHP5-FPM is not installed") |
|
|
|
|
|
|
|
|
if self.app.pargs.mysql: |
|
|
if self.app.pargs.mysql: |
|
|
if EEVariables.ee_mysql_host is "localhost": |
|
|
if ((EEVariables.ee_mysql_host is "localhost") or |
|
|
services = services + ['mysql'] |
|
|
(EEVariables.ee_mysql_host is "127.0.0.1")): |
|
|
else: |
|
|
if (EEAptGet.is_installed(self, 'mysql-server') or |
|
|
Log.warn(self, "Remote MySQL found," |
|
|
EEAptGet.is_installed(self, 'percona-server-server-5.6') or |
|
|
"Unable to reload MySQL service") |
|
|
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 check MySQL service status") |
|
|
|
|
|
|
|
|
if self.app.pargs.postfix: |
|
|
if self.app.pargs.postfix: |
|
|
if EEAptGet.is_installed(self, 'postfix'): |
|
|
if EEAptGet.is_installed(self, 'postfix'): |
|
|
services = services + ['postfix'] |
|
|
services = services + ['postfix'] |
|
|