Fix updater & rootfiles

This commit is contained in:
Arne Fitzenreiter
2008-09-27 13:53:20 +02:00
parent 6dbf53be87
commit 168a684022
3 changed files with 11 additions and 3 deletions

View File

@@ -56,6 +56,9 @@ echo var/updatexlerator >> /opt/pakfire/tmp/ROOTFILES
echo lib/iptables >> /opt/pakfire/tmp/ROOTFILES
echo lib/modules >> /opt/pakfire/tmp/ROOTFILES
echo boot >> /opt/pakfire/tmp/ROOTFILES
echo srv/web/ipfire/cgi-bin/fwhits.cgi >> /opt/pakfire/tmp/ROOTFILES
echo srv/web/ipfire/cgi-bin/network.cgi >> /opt/pakfire/tmp/ROOTFILES
echo srv/web/ipfire/cgi-bin/traffics.cgi >> /opt/pakfire/tmp/ROOTFILES
#
tar cjvf /var/ipfire/backup/update_$OLDVERSION-$NEWVERSION.tar.bz2 \
-T /opt/pakfire/tmp/ROOTFILES --exclude='#*' -C / > /dev/null 2>&1
@@ -70,6 +73,12 @@ rm -rf /etc/rc.d/rc3.d/S20collectd
#
rm -rf /etc/rc.d/rc3.d/S99squid
#
# Delete old cgi files ...
#
rm -rf /srv/web/ipfire/cgi-bin/fwhits.cgi
rm -rf /srv/web/ipfire/cgi-bin/network.cgi
rm -rf /srv/web/ipfire/cgi-bin/traffics.cgi
#
# Delete old iptables libs...
#
rm -rf /lib/iptables