Browse Source

Improved MySQL localhost check

stable
gau1991 10 years ago
parent
commit
93fc360df4
  1. 12
      ee/cli/plugins/stack_services.py

12
ee/cli/plugins/stack_services.py

@ -115,7 +115,8 @@ class EEStackStatusController(CementBaseController):
Log.info(self, "PHP5-FPM is not installed")
if self.app.pargs.mysql:
if (EEVariables.ee_mysql_host is "localhost"):
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')):
@ -185,7 +186,8 @@ class EEStackStatusController(CementBaseController):
Log.info(self, "PHP5-FPM is not installed")
if self.app.pargs.mysql:
if (EEVariables.ee_mysql_host is "localhost"):
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')):
@ -255,7 +257,8 @@ class EEStackStatusController(CementBaseController):
Log.info(self, "PHP5-FPM is not installed")
if self.app.pargs.mysql:
if (EEVariables.ee_mysql_host is "localhost"):
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')):
@ -324,7 +327,8 @@ class EEStackStatusController(CementBaseController):
Log.info(self, "PHP5-FPM is not installed")
if self.app.pargs.mysql:
if (EEVariables.ee_mysql_host is "localhost"):
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')):

Loading…
Cancel
Save