[fix] typo? script not crash anymore with unexpected '&'
This commit is contained in:
parent
ad201fd4f2
commit
dc1708fecd
|
@ -30,7 +30,7 @@ $ssl->cron_new_certs();
|
||||||
$services=array("postfix","dovecot","proftpd","apache2");
|
$services=array("postfix","dovecot","proftpd","apache2");
|
||||||
|
|
||||||
foreach($services as $service) {
|
foreach($services as $service) {
|
||||||
passthru("service $service status",&$ret);
|
passthru("service $service status",$ret);
|
||||||
if ($ret!=0) {
|
if ($ret!=0) {
|
||||||
echo "$service not running, restarting\n";
|
echo "$service not running, restarting\n";
|
||||||
passthru("service $service restart");
|
passthru("service $service restart");
|
||||||
|
|
Loading…
Reference in New Issue