From: Michael Tremer Date: Wed, 15 Dec 2010 17:27:03 +0000 (+0100) Subject: pakfire: Move cronjob from fixed time to random time in the night. X-Git-Tag: v2.9-beta2~18^2~1^2~1 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=e959976b45238278c16e3b8d06a51976fc814cac pakfire: Move cronjob from fixed time to random time in the night. --- diff --git a/config/cron/crontab b/config/cron/crontab index 16a5b960c6..7fa37ea8b1 100644 --- a/config/cron/crontab +++ b/config/cron/crontab @@ -55,3 +55,6 @@ HOME=/ # fireinfo %nightly,random * 23-4 /usr/bin/sendprofile >/dev/null 2>&1 + +# pakfire +%nightly,random * 23-4 /usr/local/bin/pakfire update >/dev/null 2>&1 diff --git a/config/rootfiles/core/44/update.sh b/config/rootfiles/core/44/update.sh index 4ce7025cd4..eeb68f01bb 100644 --- a/config/rootfiles/core/44/update.sh +++ b/config/rootfiles/core/44/update.sh @@ -101,6 +101,12 @@ echo Unpack the updated files ... tar xvf /opt/pakfire/tmp/files --preserve --numeric-owner -C / \ --no-overwrite-dir +# Re-read crontab +fcrontab -z + +# Remove old pakfire cronjob. +rm -f /etc/fcron.daily/pakfire-update + # Convert /etc/fstab entries to UUID ... # echo Convert fstab entries to UUID ... diff --git a/lfs/pakfire b/lfs/pakfire index b55c89f285..8038753b12 100644 --- a/lfs/pakfire +++ b/lfs/pakfire @@ -55,9 +55,6 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) mv -vf $(DIR_APP)/pakfire.conf $(DIR_APP)/etc/ chown root.root $(DIR_APP) -R chmod 755 $(DIR_APP)/pakfire - - ln -sf ../../opt/pakfire/pakfire /etc/fcron.daily/pakfire-update - touch /var/log/pakfire.log chown root.nobody /var/log/pakfire.log chmod 664 /var/log/pakfire.log