]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
pakfire: Move cronjob from fixed time to random time in the night.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 15 Dec 2010 17:27:03 +0000 (18:27 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 15 Dec 2010 17:27:03 +0000 (18:27 +0100)
config/cron/crontab
config/rootfiles/core/44/update.sh
lfs/pakfire

index 16a5b960c6e29b46c1823d182dcf04d70c4a71c8..7fa37ea8b138df3c71564d205557e18b9cdca2cc 100644 (file)
@@ -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
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 ...
index b55c89f285df7f14d3e1ad46db4815ab3e5a01a9..8038753b12be6bb4b1b1f2cf6296ad6f2400b2f8 100644 (file)
@@ -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