From ef0499dcae9a084531d69308f797da568050a615 Mon Sep 17 00:00:00 2001 From: David Beniamine <david.beniamine@tetras-libre.fr> Date: Tue, 21 Sep 2021 15:47:15 +0200 Subject: [PATCH] Purge hosts after 3 weeks --- registry/scripts/clean.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/registry/scripts/clean.sh b/registry/scripts/clean.sh index b1dd74f..d3f23bc 100755 --- a/registry/scripts/clean.sh +++ b/registry/scripts/clean.sh @@ -22,7 +22,7 @@ cp $conf_file $conf_file.old while read line do if [ ! -z "$line" ] && \ - [ "$(echo $line | cut -d ' ' -f 1)" -gt "$(date -d '-6 month' +%Y%m%d)" ] + [ "$(echo $line | cut -d ' ' -f 1)" -gt "$(date -d '-3 weeks' +%Y%m%d)" ] then LINES="$LINES\n$line" fi -- GitLab