From e959976b45238278c16e3b8d06a51976fc814cac Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 15 Dec 2010 18:27:03 +0100 Subject: [PATCH] pakfire: Move cronjob from fixed time to random time in the night. --- config/cron/crontab | 3 +++ config/rootfiles/core/44/update.sh | 6 ++++++ lfs/pakfire | 3 --- 3 files changed, 9 insertions(+), 3 deletions(-) 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 -- 2.39.2