[fix] typo? script not crash anymore with unexpected '&'

This commit is contained in:
Sébastien Grenier 2018-07-09 21:06:05 -03:00 committed by Benjamin Sonntag
parent ad201fd4f2
commit dc1708fecd
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ $ssl->cron_new_certs();
$services=array("postfix","dovecot","proftpd","apache2");
foreach($services as $service) {
passthru("service $service status",&$ret);
passthru("service $service status",$ret);
if ($ret!=0) {
echo "$service not running, restarting\n";
passthru("service $service restart");