]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
updater: add issue and pakfire.conf to backup
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 15 Jun 2008 06:11:08 +0000 (08:11 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 15 Jun 2008 06:11:08 +0000 (08:11 +0200)
config/rootfiles/updater/update.sh

index 73ad51710725c9820bc9d6890d2075dfd320ec07..20e282196602a900cbbbcd135ad18b859bf97ce9 100755 (executable)
@@ -46,6 +46,9 @@ if [ -e /var/ipfire/backup/update_$OLDVERSION-$NEWVERSION.tar.bz2 ]; then
 fi
 echo First we made a backup of all files that was inside of the
 echo update archive. This may take a while ...
+# Add issue and packfire conf to backup
+echo etc/issue >> ROOTFILES
+echo opt/pakfire/etc/pakfire.conf >> ROOTFILES
 tar cjvf /var/ipfire/backup/update_$OLDVERSION-$NEWVERSION.tar.bz2 \
    -T ROOTFILES --exclude='#*' -C / > /dev/null 2>&1 
 echo
@@ -94,7 +97,7 @@ sed -i "s|$OLDVERSION|$NEWVERSION|g" /opt/pakfire/etc/pakfire.conf
 #
 # Create new issue
 #
-echo IPFire v$NEWVERSION - www.ipfire.org > /etc/issue
+echo IPFire v$NEWVERSION - www.ipfire.org > /
 echo =================================== >> /etc/issue
 echo \\n running on \\s \\r \\m >> /etc/issue
 # Core 15 begin