From 0449b50f896009ad68431e2bd7b3091f5570269d Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sat, 26 Feb 2011 19:13:37 +0100 Subject: [PATCH] Fix core updater 45-48 to remove only old core updates from cache. Conflicts: config/rootfiles/core/48/update.sh --- config/rootfiles/core/45/update.sh | 9 +++++++-- config/rootfiles/core/46/update.sh | 9 +++++++-- config/rootfiles/core/47/update.sh | 9 +++++++-- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/config/rootfiles/core/45/update.sh b/config/rootfiles/core/45/update.sh index 228ada4e46..6a76bf845a 100644 --- a/config/rootfiles/core/45/update.sh +++ b/config/rootfiles/core/45/update.sh @@ -25,8 +25,13 @@ /usr/local/bin/backupctrl exclude >/dev/null 2>&1 # -# Remove core updates from pakfire cache to save space... -rm -f /var/cache/pakfire/core-upgrade-*.ipfire +# Remove old core updates from pakfire cache to save space... +core=45 +for (( i=1; i<=$core; i++ )) +do + rm -f /var/cache/pakfire/core-upgrade-$i.ipfire +done + # #Stop services echo Stopping Proxy diff --git a/config/rootfiles/core/46/update.sh b/config/rootfiles/core/46/update.sh index 6d2a75dc49..ccf6719ce4 100644 --- a/config/rootfiles/core/46/update.sh +++ b/config/rootfiles/core/46/update.sh @@ -25,8 +25,13 @@ /usr/local/bin/backupctrl exclude >/dev/null 2>&1 # -# Remove core updates from pakfire cache to save space... -rm -f /var/cache/pakfire/core-upgrade-*.ipfire +# Remove old core updates from pakfire cache to save space... +core=46 +for (( i=1; i<=$core; i++ )) +do + rm -f /var/cache/pakfire/core-upgrade-$i.ipfire +done + # #Stop services diff --git a/config/rootfiles/core/47/update.sh b/config/rootfiles/core/47/update.sh index ef10f558bb..02c315c814 100644 --- a/config/rootfiles/core/47/update.sh +++ b/config/rootfiles/core/47/update.sh @@ -25,8 +25,13 @@ /usr/local/bin/backupctrl exclude >/dev/null 2>&1 # -# Remove core updates from pakfire cache to save space... -rm -f /var/cache/pakfire/core-upgrade-*.ipfire +# Remove old core updates from pakfire cache to save space... +core=47 +for (( i=1; i<=$core; i++ )) +do + rm -f /var/cache/pakfire/core-upgrade-$i.ipfire +done + # #Stop services -- 2.39.2