mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 19:15:54 +02:00
core45: remove some addon cronjobs if the addons are not installed.
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
|
||||
#
|
||||
# Remove core updates from pakfire cache to save space...
|
||||
rm -f /var/cache/pakfire core-upgrade-*.ipfire
|
||||
rm -f /var/cache/pakfire/core-upgrade-*.ipfire
|
||||
#
|
||||
#Stop services
|
||||
echo Stopping Proxy
|
||||
@@ -38,6 +38,12 @@ killall vpn-watch
|
||||
#Extract files
|
||||
extract_files
|
||||
|
||||
#
|
||||
# Remove some addon cronjobs if the addons are not installed
|
||||
[ ! -e /opt/pakfire/db/installed/meta-cacti ] && rm -f /etc/fcron.cyclic/cacti.cron
|
||||
[ ! -e /opt/pakfire/db/installed/meta-gnump3d ] && rm -f /etc/fcron.daily/gnump3d-index
|
||||
[ ! -e /opt/pakfire/db/installed/meta-asterisk ] && rm -f /etc/fcron.minutely/wakeup.sh
|
||||
|
||||
# Remove disable cron mails...
|
||||
sed "s|MAILTO=root|MAILTO=|g" < /var/spool/cron/root.orig > /var/tmp/root.tmp
|
||||
fcrontab /var/tmp/root.tmp
|
||||
|
||||
Reference in New Issue
Block a user