Skip to content

Commit 378bcd4

Browse files
author
gau1991
committed
Fixed issue in ee stack start --mysql
1 parent 93fc360 commit 378bcd4

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

ee/cli/plugins/stack_services.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,18 @@ def start(self):
5151
Log.info(self, "PHP5-FPM is not installed")
5252

5353
if self.app.pargs.mysql:
54-
if EEVariables.ee_mysql_host is "localhost":
55-
services = services + ['mysql']
54+
if ((EEVariables.ee_mysql_host is "localhost") or
55+
(EEVariables.ee_mysql_host is "127.0.0.1")):
56+
if (EEAptGet.is_installed(self, 'mysql-server') or
57+
EEAptGet.is_installed(self, 'percona-server-server-5.6') or
58+
EEAptGet.is_installed(self, 'mariadb-server')):
59+
services = services + ['mysql']
60+
else:
61+
Log.info(self, "MySQL is not installed")
5662
else:
57-
Log.warn(self, "Remote MySQL found,"
58-
"Unable to start MySQL service")
63+
Log.warn(self, "Remote MySQL found, "
64+
"Unable to check MySQL service status")
65+
5966
if self.app.pargs.postfix:
6067
if EEAptGet.is_installed(self, 'postfix'):
6168
services = services + ['postfix']

0 commit comments

Comments
 (0)