X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=blobdiff_plain;f=config%2Frootfiles%2Fcore%2F45%2Fupdate.sh;h=69b61e367ae23da8c30dc50fd4134362a7d83d7f;hp=d22779172099f7fd2bce7b6b9278ab76a3e9a4e2;hb=bd3c8b59949509e6bc8a77104deb15854ad187bb;hpb=bb893dcd86744a5167d92529d4a7e3c0fb29d9d8 diff --git a/config/rootfiles/core/45/update.sh b/config/rootfiles/core/45/update.sh index d227791720..69b61e367a 100644 --- a/config/rootfiles/core/45/update.sh +++ b/config/rootfiles/core/45/update.sh @@ -24,6 +24,9 @@ . /opt/pakfire/lib/functions.sh /usr/local/bin/backupctrl exclude >/dev/null 2>&1 +# +# Remove core updates from pakfire cache to save space... +rm -f /var/cache/pakfire/core-upgrade-*.ipfire # #Stop services echo Stopping Proxy @@ -35,6 +38,16 @@ 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 + # #Start services echo Starting Proxy