Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
certman
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
certman
Commits
a54142ec
Commit
a54142ec
authored
3 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
update find command
parent
4a936124
Branches
Branches containing commit
No related tags found
1 merge request
!6
update find command
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cm.sh
+4
-4
4 additions, 4 deletions
cm.sh
with
4 additions
and
4 deletions
cm.sh
+
4
−
4
View file @
a54142ec
...
@@ -526,18 +526,18 @@ function public_list-old(){
...
@@ -526,18 +526,18 @@ function public_list-old(){
echo
"Cert dir is
$(
pwd
)
"
echo
"Cert dir is
$(
pwd
)
"
echo
echo
echo
"---- Certificates expiring soon - with age
$_iWarn
...
$_iRuntime
days:"
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
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
_rc
=
1
else
else
echo
" NONE."
echo
" NONE."
fi
fi
echo
echo
echo
"---- Certificate list ... older
$_iRuntime
days:"
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
then
find
-type
d
-mtime
+
$_iRuntime
-exec
ls
-ld
{}
\;
|
nl
find
-type
f
-name
"*.cert.cer"
-mtime
+
$_iRuntime
-exec
ls
-ld
{}
\;
|
nl
_rc
=
2
_rc
=
2
else
else
echo
" NONE."
echo
" NONE."
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment