From 56b47751c2d1af9960b127dc0feb1b58bd62c34b Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Wed, 14 May 2025 11:41:20 -0500 Subject: [PATCH] fix variable name --- clusters/cl01tl/platform/gitea/values.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clusters/cl01tl/platform/gitea/values.yaml b/clusters/cl01tl/platform/gitea/values.yaml index 21cb0a3c6..9c5eb3038 100644 --- a/clusters/cl01tl/platform/gitea/values.yaml +++ b/clusters/cl01tl/platform/gitea/values.yaml @@ -276,9 +276,9 @@ backup: args: - -ec - | - export 1_WEEK_AGO=$(date -d @$(( $(date +%s) - 604800 )) +%Y-%m-%d\ %H:%M:%S); - export 2_WEEK_AGO=$(date -d @$(( $(date +%s) - 1209600 )) +%Y-%m-%d\ %H:%M:%S); - export TIME_RANGE="$2_WEEK_AGO" + export ONE_WEEK_AGO=$(date -d @$(( $(date +%s) - 604800 )) +%Y-%m-%d\ %H:%M:%S); + export TWO_WEEK_AGO=$(date -d @$(( $(date +%s) - 1209600 )) +%Y-%m-%d\ %H:%M:%S); + export TIME_RANGE="$TWO_WEEK_AGO" echo ">> Running S3 prune for Gitea backup repository" echo ">> Backups prior to '$TIME_RANGE' will be removed" echo ">> File list:"