]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Fix some squid and snort update problems.
authorArne Fitzenreiter <arne_f@ipfire.org>
Tue, 7 Dec 2010 17:30:53 +0000 (18:30 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Tue, 7 Dec 2010 17:30:53 +0000 (18:30 +0100)
config/rootfiles/core/44/update.sh

index cfe864b897b6edcec68b98f3cd0a65050669ff88..4ce7025cd4f71da23238468b8f9337e6b91f99d9 100644 (file)
@@ -52,6 +52,9 @@ echo etc/mkinitcpio.d >> /opt/pakfire/tmp/ROOTFILES
 echo lib/initcpio >> /opt/pakfire/tmp/ROOTFILES
 echo sbin/mkinitcpio >> /opt/pakfire/tmp/ROOTFILES
 echo usr/bin/iw >> /opt/pakfire/tmp/ROOTFILES
+echo etc/snort >> /opt/pakfire/tmp/ROOTFILES
+echo usr/lib/snort_* >> /opt/pakfire/tmp/ROOTFILES
+echo usr/lib/squid >> /opt/pakfire/tmp/ROOTFILES
 
 # Backup the files
 tar cjvf /var/ipfire/backup/core-upgrade_$KVER.tar.bz2 \
@@ -76,6 +79,19 @@ rm -rf /usr/bin/iw
 # Backup grub.conf
 #
 cp -vf /boot/grub/grub.conf /boot/grub/grub.conf.org
+
+#
+# Stop services to save memory
+#
+/etc/init.d/snort stop
+/etc/init.d/squid stop
+#
+#
+# Remove old snort...
+rm -rf /etc/snort
+rm -rf /usr/lib/snort_*
+# Remove old squid...
+rm -rf /usr/lib/squid
 #
 # Unpack the updated files
 #
@@ -85,12 +101,6 @@ echo Unpack the updated files ...
 tar xvf /opt/pakfire/tmp/files --preserve --numeric-owner -C / \
        --no-overwrite-dir
 
-#
-# Stop services to save memory
-#
-/etc/init.d/snort stop
-/etc/init.d/squid stop
-
 # Convert /etc/fstab entries to UUID ...
 #
 echo Convert fstab entries to UUID ...