From f9fae8bf964300f4fd197c94b83182bfd074d60c Mon Sep 17 00:00:00 2001 From: Jad Haj Yahya Date: Thu, 7 Nov 2024 14:06:30 +0200 Subject: [PATCH] Remove preserve file befroe calling prune_nodes (#83) --- images/fcos-bastion-image/root/usr/bin/clean-up.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/images/fcos-bastion-image/root/usr/bin/clean-up.sh b/images/fcos-bastion-image/root/usr/bin/clean-up.sh index 7ddd582..d2e92c9 100755 --- a/images/fcos-bastion-image/root/usr/bin/clean-up.sh +++ b/images/fcos-bastion-image/root/usr/bin/clean-up.sh @@ -32,6 +32,7 @@ do echo "<3>$cluster to continue being preserved, skipping..." && continue [ "${enddate}" -le "${nowdate}" ] && \ echo "<3>$cluster no longer to be preserved" + rm -f "$cluster_folder/preserve" fi echo "<3>$cluster is more than 24 hours old and not preserved, starting the pruning...." prune_nodes "$cluster"