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:"