Moved apache reload to the end of cronjob, fixes #775

This commit is contained in:
Andreas Burchert (scarya)
2011-05-27 21:56:11 +02:00
parent 63aed1e8f4
commit 48df1bac4b

View File

@@ -61,9 +61,6 @@ if($settings['system']['backup_enabled'] == '1'){
fwrite($fh, $filedata);
fclose($fh);
//reload webserver to enable directory protection
safe_exec(escapeshellcmd($settings['system']['apachereload_command']));
// backup
if($row['backup_allowed'] == '1' && $row['backup_enabled'] == '1'){
// get uid & gid from ftp table
@@ -151,7 +148,10 @@ if($settings['system']['backup_enabled'] == '1'){
}
}
}
fwrite($debugHandler, 'backup customers finished...' . "\n");
fwrite($debugHandler, 'backup customers finished...' . "\n");
//reload webserver to enable directory protection
safe_exec(escapeshellcmd($settings['system']['apachereload_command']));
}
?>