Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Grenoble
Eole-Wol
Commits
ef0499dc
Unverified
Commit
ef0499dc
authored
Sep 21, 2021
by
David Beniamine
Browse files
Purge hosts after 3 weeks
parent
b14b3811
Changes
1
Hide whitespace changes
Inline
Side-by-side
registry/scripts/clean.sh
View file @
ef0499dc
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment