From 87b8269c96672ce15051520360b7b897fc8e2478 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 9 Mar 2019 18:03:20 -0500 Subject: fix certbot renew cronjob --- modules/certbot/templates/certbot | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules/certbot') 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 -- cgit v1.2.3-54-g00ecf