pakfire: Move cronjob from fixed time to random time in the night.

This commit is contained in:
Michael Tremer
2010-12-15 18:27:03 +01:00
parent aa2049e552
commit e959976b45
3 changed files with 9 additions and 3 deletions

View 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

View 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 ...

View 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