File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff 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' ]
You can’t perform that action at this time.
0 commit comments