]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - config/rootfiles/core/44/update.sh
pakfire: Move cronjob from fixed time to random time in the night.
[people/pmueller/ipfire-2.x.git] / config / rootfiles / core / 44 / update.sh
index 4ce7025cd4f71da23238468b8f9337e6b91f99d9..eeb68f01bbfff824e6ca9e6cc0b6b892dd5595b3 100644 (file)
@@ -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 ...