From 2c46d7e299add461055a4af2dd03f25d88dd3221 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Fri, 12 Aug 2011 10:27:55 +0200 Subject: [PATCH] core51: erase backups of previous core updates. --- config/rootfiles/core/51/update.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/config/rootfiles/core/51/update.sh b/config/rootfiles/core/51/update.sh index 19fe8985d6..0e9e4543d7 100644 --- a/config/rootfiles/core/51/update.sh +++ b/config/rootfiles/core/51/update.sh @@ -44,12 +44,11 @@ fi # -# check if we the backup file already exist -if [ -e /var/ipfire/backup/core-upgrade_$KVER.tar.bz2 ]; then - echo Moving backup to backup-old ... - mv -f /var/ipfire/backup/core-upgrade_$KVER.tar.bz2 \ - /var/ipfire/backup/core-upgrade_$KVER-old.tar.bz2 -fi +# erase old backups to prefent disk-full on small installations +rm -f /var/ipfire/backup/core-upgrade_*.tar.bz2 + +# +# backup echo First we made a backup of all files that was inside of the echo update archive. This may take a while ... # Add some files that are not in the package to backup -- 2.39.5