diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-03-09 18:03:20 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-03-09 18:03:20 -0500 |
commit | 87b8269c96672ce15051520360b7b897fc8e2478 (patch) | |
tree | 849fcc70ad102f6c7490e68b931c83dd990a18f5 | |
parent | fcb574f9bf631189e48c8d82f92a4b623c2a6531 (diff) | |
download | puppet-tozt-87b8269c96672ce15051520360b7b897fc8e2478.tar.gz puppet-tozt-87b8269c96672ce15051520360b7b897fc8e2478.zip |
fix certbot renew cronjob
-rw-r--r-- | modules/certbot/templates/certbot | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/certbot/templates/certbot b/modules/certbot/templates/certbot index 9568fe1..67e732a 100644 --- a/modules/certbot/templates/certbot +++ b/modules/certbot/templates/certbot @@ -1,3 +1,8 @@ #!/bin/sh -certbot renew -q<%= @config_dir_opts %> +if [ -z "<%= @_config_dir %>" ]; then + config_dir_opts="" +else + config_dir_opts="--config-dir <%= @_config_dir %>" +fi +certbot renew -q $config_dir_opts |