summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp12
1 files changed, 12 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index da579ba..eef61bf 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -17,18 +17,30 @@ class certbot(
if $pre_hook != '' {
$real_pre_hook = "--pre-hook \"${pre_hook}\""
}
+ else {
+ $real_pre_hook = ''
+ }
if $post_hook != '' {
$real_post_hook = "--post-hook \"${post_hook}\""
}
+ else {
+ $real_post_hook = ''
+ }
if $pre_command != '' {
$real_pre_command = "${pre_command} &&"
}
+ else {
+ $real_pre_command = ''
+ }
if $post_command != '' {
$real_post_command = "&& ${post_command}"
}
+ else {
+ $real_post_command = ''
+ }
# Certbot support
file { $basedir: