@@ -214,7 +214,7 @@ function update($event_name, $data) {
214214 $ content = str_replace ('{ssl_comment} ' , '# ' , $ content );
215215 $ content = preg_replace ('/(\s)\{ssl_on\}/ ' , '' , $ content );
216216 }
217-
217+
218218 $ content = str_replace ('{use_tcp} ' , $ use_tcp , $ content );
219219 $ content = str_replace ('{use_socket} ' , $ use_socket , $ content );
220220
@@ -227,11 +227,11 @@ function update($event_name, $data) {
227227 $ content = str_replace ('{use_rspamd} ' , $ use_rspamd , $ content );
228228
229229 // Fix socket path on PHP 7 systems
230- if (file_exists ('/var/run/php/php7.0-fpm.sock ' )) $ content = str_replace ('/var/run/php5-fpm.sock ' , '/var/run/php/php7.0-fpm.sock ' , $ content );
231- if (file_exists ('/var/run/php/php7.1-fpm.sock ' )) $ content = str_replace ('/var/run/php5-fpm.sock ' , '/var/run/php/php7.1-fpm.sock ' , $ content );
232- if (file_exists ('/var/run/php/php7.2-fpm.sock ' )) $ content = str_replace ('/var/run/php5-fpm.sock ' , '/var/run/php/php7.2-fpm.sock ' , $ content );
233- if (file_exists ('/var/run/php/php7.3-fpm.sock ' )) $ content = str_replace ('/var/run/php5-fpm.sock ' , '/var/run/php/php7.3-fpm.sock ' , $ content );
234230 if (file_exists ('/var/run/php/php7.4-fpm.sock ' )) $ content = str_replace ('/var/run/php5-fpm.sock ' , '/var/run/php/php7.4-fpm.sock ' , $ content );
231+ if (file_exists ('/var/run/php/php7.3-fpm.sock ' )) $ content = str_replace ('/var/run/php5-fpm.sock ' , '/var/run/php/php7.3-fpm.sock ' , $ content );
232+ if (file_exists ('/var/run/php/php7.2-fpm.sock ' )) $ content = str_replace ('/var/run/php5-fpm.sock ' , '/var/run/php/php7.2-fpm.sock ' , $ content );
233+ if (file_exists ('/var/run/php/php7.1-fpm.sock ' )) $ content = str_replace ('/var/run/php5-fpm.sock ' , '/var/run/php/php7.1-fpm.sock ' , $ content );
234+ if (file_exists ('/var/run/php/php7.0-fpm.sock ' )) $ content = str_replace ('/var/run/php5-fpm.sock ' , '/var/run/php/php7.0-fpm.sock ' , $ content );
235235
236236 // PHP-FPM
237237 // Dont just copy over the php-fpm pool template but add some custom settings
0 commit comments