]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - config/rootfiles/core/45/update.sh
Fix core updater 45-48 to remove only old core updates from cache.
[people/pmueller/ipfire-2.x.git] / config / rootfiles / core / 45 / update.sh
index 64be6d3e6af5bb8b480143ddab1b41b877fd1308..6a76bf845a9c665624ac12d0d222c8d387330892 100644 (file)
 /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
+# Remove old core updates from pakfire cache to save space...
+core=45
+for (( i=1; i<=$core; i++ ))
+do
+       rm -f /var/cache/pakfire/core-upgrade-$i.ipfire
+done
+
 #
 #Stop services
 echo Stopping Proxy
@@ -48,6 +53,10 @@ extract_files
 sed "s|MAILTO=root|MAILTO=|g" < /var/spool/cron/root.orig > /var/tmp/root.tmp
 fcrontab /var/tmp/root.tmp
 
+# Disable snort packet decoding alerts
+sed -i "s|#config disable_decode_alerts|config disable_decode_alerts|g" /etc/snort/snort.conf
+sed -i "s|#config disable_tcpopt_alerts|config disable_tcpopt_alerts|g" /etc/snort/snort.conf
+
 #
 #Start services
 echo Starting Proxy