@@ -115,7 +115,8 @@ def stop(self):
115115 Log .info (self , "PHP5-FPM is not installed" )
116116
117117 if self .app .pargs .mysql :
118- if (EEVariables .ee_mysql_host is "localhost" ):
118+ if ((EEVariables .ee_mysql_host is "localhost" ) or
119+ (EEVariables .ee_mysql_host is "127.0.0.1" )):
119120 if (EEAptGet .is_installed (self , 'mysql-server' ) or
120121 EEAptGet .is_installed (self , 'percona-server-server-5.6' ) or
121122 EEAptGet .is_installed (self , 'mariadb-server' )):
@@ -185,7 +186,8 @@ def restart(self):
185186 Log .info (self , "PHP5-FPM is not installed" )
186187
187188 if self .app .pargs .mysql :
188- if (EEVariables .ee_mysql_host is "localhost" ):
189+ if ((EEVariables .ee_mysql_host is "localhost" ) or
190+ (EEVariables .ee_mysql_host is "127.0.0.1" )):
189191 if (EEAptGet .is_installed (self , 'mysql-server' ) or
190192 EEAptGet .is_installed (self , 'percona-server-server-5.6' ) or
191193 EEAptGet .is_installed (self , 'mariadb-server' )):
@@ -255,7 +257,8 @@ def status(self):
255257 Log .info (self , "PHP5-FPM is not installed" )
256258
257259 if self .app .pargs .mysql :
258- if (EEVariables .ee_mysql_host is "localhost" ):
260+ if ((EEVariables .ee_mysql_host is "localhost" ) or
261+ (EEVariables .ee_mysql_host is "127.0.0.1" )):
259262 if (EEAptGet .is_installed (self , 'mysql-server' ) or
260263 EEAptGet .is_installed (self , 'percona-server-server-5.6' ) or
261264 EEAptGet .is_installed (self , 'mariadb-server' )):
@@ -324,7 +327,8 @@ def reload(self):
324327 Log .info (self , "PHP5-FPM is not installed" )
325328
326329 if self .app .pargs .mysql :
327- if (EEVariables .ee_mysql_host is "localhost" ):
330+ if ((EEVariables .ee_mysql_host is "localhost" ) or
331+ (EEVariables .ee_mysql_host is "127.0.0.1" )):
328332 if (EEAptGet .is_installed (self , 'mysql-server' ) or
329333 EEAptGet .is_installed (self , 'percona-server-server-5.6' ) or
330334 EEAptGet .is_installed (self , 'mariadb-server' )):
0 commit comments