mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
Fixed Upgrade not backup cache directores of proxy and booster
Do not override some important config file when upgrade
This commit is contained in:
@@ -63,6 +63,14 @@ echo srv/web/ipfire/cgi-bin/traffics.cgi >> /opt/pakfire/tmp/ROOTFILES
|
||||
echo srv/web/ipfire/cgi-bin/graphs.cgi >> /opt/pakfire/tmp/ROOTFILES
|
||||
echo srv/web/ipfire/cgi-bin/qosgraph.cgi >> /opt/pakfire/tmp/ROOTFILES
|
||||
#
|
||||
|
||||
# Remove some files from the rootfiles
|
||||
cat /opt/pakfire/tmp/ROOTFILES \
|
||||
| grep -v "var/log/cache" \
|
||||
| grep -v "var/updatecache" > /opt/pakfire/tmp/ROOTFILESNEW
|
||||
|
||||
mv -f /opt/pakfire/tmp/ROOTFILESNEW /opt/pakfire/tmp/ROOTFILES
|
||||
|
||||
tar czvf /var/ipfire/backup/update_$OLDVERSION-$NEWVERSION.tar.gz \
|
||||
-T /opt/pakfire/tmp/ROOTFILES --exclude='#*' -C / > /dev/null 2>&1
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user