bugfix new cron.d-file generation and don't overwrite our master, refs #858
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
@@ -35,6 +35,7 @@ function checkCrondConfigurationFile() {
|
||||
$cronfile = "# automatically generated cron-configuration by froxlor\ņ";
|
||||
$cronfile.= "# do not manually edit this file as it will be re-generated periodically.\ņ";
|
||||
$cronfile.= "PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin\n#\n";
|
||||
$cronfile.= "PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin\n#\n";
|
||||
|
||||
// get all the crons
|
||||
$result_stmt = Database::query("
|
||||
|
||||
@@ -34,6 +34,7 @@ function inserttask($type, $param1 = '', $param2 = '', $param3 = '', $param4 = '
|
||||
|| $type == '4'
|
||||
|| $type == '5'
|
||||
|| $type == '10'
|
||||
|| $type == '99'
|
||||
) {
|
||||
// 4 = bind -> if bind disabled -> no task
|
||||
if ($type == '4' && Settings::Get('system.bind_enable') == '0') {
|
||||
|
||||
Reference in New Issue
Block a user