aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/backupninja.conf.erb6
-rw-r--r--templates/sh.conf.erb2
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/backupninja.conf.erb b/templates/backupninja.conf.erb
index 6b0a0dd..7706a61 100644
--- a/templates/backupninja.conf.erb
+++ b/templates/backupninja.conf.erb
@@ -8,13 +8,13 @@ when = <%= send(:when) %>
reportemail = <%= @reportemail %>
reportsuccess = <%= @reportsuccess ? 'yes' : 'no' %>
reportwarning = <%= @reportwarning ? 'yes' : 'no' %>
-<% if @reporthost -%>
+<% if reporthost.is_a? String -%>
<%= 'reporthost = ' + @reporthost %>
<% end -%>
-<% if @reportuser -%>
+<% if reportuser.is_a? String -%>
<%= 'reportuser = ' + @reportuser %>
<% end -%>
-<% if @reportdirectory -%>
+<% if reportdirectory.is_a? String -%>
<%= 'reportdirectory = ' + @reportdirectory %>
<% end -%>
logfile = <%= @logfile %>
diff --git a/templates/sh.conf.erb b/templates/sh.conf.erb
index e0e5137..f1b4161 100644
--- a/templates/sh.conf.erb
+++ b/templates/sh.conf.erb
@@ -5,6 +5,6 @@
# the next time Puppet runs. Please make configuration changes to this
# service in Puppet.
-<% @command_string.each do |line| -%>
+<% @command_string.each_line do |line| -%>
<%= line %>
<% end -%>