From 8ed42ed9d1d7d0c2ab2e2980ab52e8ec50378926 Mon Sep 17 00:00:00 2001 From: Mike Khiretskiy Date: Mon, 25 Aug 2014 18:02:44 +0400 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=BE=D1=81=D1=81=D1=82=D0=B0=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20crontab?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../3.2/6_ac_update_sync/revision/02 | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/profiles/templates/3.2/6_ac_update_sync/revision/02 b/profiles/templates/3.2/6_ac_update_sync/revision/02 index b82ba2a24..b8797310e 100644 --- a/profiles/templates/3.2/6_ac_update_sync/revision/02 +++ b/profiles/templates/3.2/6_ac_update_sync/revision/02 @@ -1,9 +1,31 @@ -# Calculate ini(update.revision)<2 run=/bin/bash merge=sys-boot/grub,sys-process/vixie-cron +# Calculate ini(update.revision)<2 run=/bin/bash merge=sys-process/vixie-cron #-ini(update.revision,2)-# #?cl_chroot_status==off# /bin/sed -i '/cl-update/d' /etc/crontab + +# restore crontab if it is corrupted +if ! grep -q lastrun/cron.hourly /etc/crontab +then + (cat </etc/crontab +fi #cl_chroot_status# true