From c2670d8a4201b0ae516736c723c3b48ec5a69ea7 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Tue, 29 Sep 2009 19:57:07 +0200 Subject: [PATCH] Fix tmpfs backup cronjob entry --- config/cron/crontab | 2 +- config/rootfiles/core/32/update.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/config/cron/crontab b/config/cron/crontab index 82d2e078fc..cbc92cbc6f 100644 --- a/config/cron/crontab +++ b/config/cron/crontab @@ -22,7 +22,7 @@ HOME=/ # Make some nice graphs */5 * * * * /usr/local/bin/makegraphs >/dev/null -* 05 * * * /etc/init.d/tmpfs backup >/dev/null +17 5 * * * /etc/init.d/tmpfs backup >/dev/null # Force update the dynamic dns registration once a week # Force update even if IP has not changed once a month if 'minimize update' selected in GUI diff --git a/config/rootfiles/core/32/update.sh b/config/rootfiles/core/32/update.sh index f94caac65f..efa8c1b716 100644 --- a/config/rootfiles/core/32/update.sh +++ b/config/rootfiles/core/32/update.sh @@ -24,5 +24,10 @@ . /opt/pakfire/lib/functions.sh /usr/local/bin/backupctrl exclude >/dev/null 2>&1 extract_files +# +# Fix tmpfs Backup cronjob entry +grep -v "tmpfs backup" /var/spool/cron/root.orig > /var/tmp/root.tmp +echo "17 5 * * * /etc/init.d/tmpfs backup >/dev/null" >> /var/tmp/root.tmp +fcrontab /var/tmp/root.tmp #Update Language cache perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang" -- 2.39.2