mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
pakfire: Move cronjob from fixed time to random time in the night.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 ...
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user