From 9e13c077e926147e471f31b29c2b1eedb10c1802 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Thu, 12 Jan 2023 08:33:19 +0100 Subject: [PATCH] show command to regenerate cron.d-file if previous deletion of old files could not be done automatically, fixes #1076 Signed-off-by: Michael Kaufmann --- install/updates/froxlor/update_2.x.inc.php | 23 ++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/install/updates/froxlor/update_2.x.inc.php b/install/updates/froxlor/update_2.x.inc.php index 436d5f69..b5ee6543 100644 --- a/install/updates/froxlor/update_2.x.inc.php +++ b/install/updates/froxlor/update_2.x.inc.php @@ -206,18 +206,29 @@ if (Froxlor::isDatabaseVersion('202112310')) { if (Froxlor::isDatabaseVersion('202211030')) { Update::showUpdateStep("Creating backward compatibility for cronjob"); - $complete_filedir = Froxlor::getInstallDir() . '/scripts'; - mkdir($complete_filedir, 0750, true); - $newCronBin = Froxlor::getInstallDir().'/bin/froxlor-cli'; - $compCron = <<
' . $cron_run_cmd . '
'); + } Froxlor::updateToDbVersion('202212060'); }