]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - config/rootfiles/core/45/update.sh
Remove core-updates from pakfire cache.
[people/pmueller/ipfire-2.x.git] / config / rootfiles / core / 45 / update.sh
index 1197905cd362845ff3b318e7d883e0a3999e754b..582bd821358e278a2d3c1bc506e4c3cf7f64fef9 100644 (file)
 . /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
 /etc/init.d/squid stop 2>/dev/null
+echo Stopping vpn-watch
+killall vpn-watch
 
 #
 #Extract files
 extract_files
 
+# 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
 /etc/init.d/squid start 2>/dev/null
+echo Rewriting Outgoing FW Rules
+/var/ipfire/outgoing/bin/outgoingfw.pl
+echo Starting vpn-watch
+/usr/local/bin/vpn-watch &
 
 #
 #Update Language cache