Unverified Commit ef0499dc authored by David Beniamine's avatar David Beniamine
Browse files

Purge hosts after 3 weeks

parent b14b3811
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment