Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IML Open Source
certman
Commits
a54142ec
Commit
a54142ec
authored
Apr 04, 2022
by
Hahn Axel (hahn)
Browse files
update find command
parent
4a936124
Changes
1
Hide whitespace changes
Inline
Side-by-side
cm.sh
View file @
a54142ec
...
...
@@ -526,18 +526,18 @@ function public_list-old(){
echo
"Cert dir is
$(
pwd
)
"
echo
echo
"---- Certificates expiring soon - with age
$_iWarn
...
$_iRuntime
days:"
if
find
-type
d
-mtime
+
$_iWarn
-mtime
-
$_iRuntime
|
grep
.
>
/dev/null
if
find
-type
f
-name
"*.cert.cer"
-mtime
+
$_iWarn
-mtime
-
$_iRuntime
|
grep
.
>
/dev/null
then
find
-type
d
-mtime
+
$_iWarn
-mtime
-
$_iRuntime
-exec
ls
-ld
{}
\;
|
nl
find
-type
f
-name
"*.cert.cer"
-mtime
+
$_iWarn
-mtime
-
$_iRuntime
-exec
ls
-ld
{}
\;
|
nl
_rc
=
1
else
echo
" NONE."
fi
echo
echo
"---- Certificate list ... older
$_iRuntime
days:"
if
find
-type
d
-mtime
+
$_iRuntime
|
grep
.
>
/dev/null
if
find
-type
f
-name
"*.cert.cer"
-mtime
+
$_iRuntime
|
grep
.
>
/dev/null
then
find
-type
d
-mtime
+
$_iRuntime
-exec
ls
-ld
{}
\;
|
nl
find
-type
f
-name
"*.cert.cer"
-mtime
+
$_iRuntime
-exec
ls
-ld
{}
\;
|
nl
_rc
=
2
else
echo
" NONE."
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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