Files
confdroid_nagios/templates/certbot/unless_renew_cert.erb
2017-07-21 15:51:28 +01:00

8 lines
238 B
Plaintext

#!/bin/bash
<% if @ng_enable_certbot == true %>
case `find /etc/letsencrypt/renewal -type f -name "<%= @ng_nagios_server %>.conf" -mtime +80` in
'') echo 'No filename found' exit 0 ;;
*) echo 'Found filename' exit 1 ;;
esac
<% end %>