Skip to content
Snippets Groups Projects
Commit 38c8b2d4 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch '5213-handle-dns-alias-domain' into 'master'

update find command

See merge request open-source/iml-certman!6
parents e98b672e a54142ec
Branches
No related tags found
1 merge request!6update find command
......@@ -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."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment