diff --git a/config/cron/crontab b/config/cron/crontab index 16a5b960c..7fa37ea8b 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 4ce7025cd..eeb68f01b 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 b55c89f28..8038753b1 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