]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
core 65: Don't replace crontab.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 29 Nov 2012 10:01:34 +0000 (11:01 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 29 Nov 2012 10:01:34 +0000 (11:01 +0100)
Just update the necessary bits because users may probably
have added their own configurations.

config/rootfiles/core/65/filelists/files
config/rootfiles/core/65/update.sh

index 91272a4e4306a06a6921773d8f19da060b9e11a7..6c88a31b5c8d3de7c3a1ed165d9e7bc5d38c03e9 100644 (file)
@@ -7,4 +7,3 @@ srv/web/ipfire/cgi-bin/vpnmain.cgi
 usr/sbin/ovpn-ccd-convert
 var/ipfire/general-functions.pl
 var/ipfire/langs
-var/spool/cron/root.orig
index fca72115e16a42a495df625813ccf7e53b6dea14..88f5b3633df8742bcf85c3ff0f253c640599eac4 100644 (file)
@@ -49,7 +49,9 @@ perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"
 # Convert OpenVPN RW connections.
 /usr/sbin/ovpn-ccd-convert
 
-# Re-read crontab.
+# Update crontab.
+sed -i /var/spool/cron/root.orig \
+       -e 's@^.*fcron.weekly.*$@\&nice(10),bootrun 47 2 \* \* 1\ttest -x /usr/local/bin/run-parts \&\& /usr/local/bin/run-parts /etc/fcron.weekly@'
 fcrontab -z &>/dev/null
 
 # Reload apache configuration.