OP#436 main config file
This commit is contained in:
1
templates/certbot/get_cert.erb
Normal file
1
templates/certbot/get_cert.erb
Normal file
@@ -0,0 +1 @@
|
||||
certbot certonly -t -n --agree-tos --webroot -w <%= @ng_certbot_webroot %>/ -d <%= @ng_webserver_name %> --email <%= @ng_mail_user %>
|
||||
4
templates/certbot/unless_get_cert.erb
Normal file
4
templates/certbot/unless_get_cert.erb
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
<% if @ng_enable_certbot == true %>
|
||||
test -d /etc/letsencrypt/archive/<%= @ng_nagios_server %>
|
||||
<% end %>
|
||||
7
templates/certbot/unless_renew_cert.erb
Normal file
7
templates/certbot/unless_renew_cert.erb
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/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 %>
|
||||
Reference in New Issue
Block a user