summaryrefslogtreecommitdiff
path: root/templates/backupninja.conf.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/backupninja.conf.erb')
-rw-r--r--templates/backupninja.conf.erb12
1 files changed, 9 insertions, 3 deletions
diff --git a/templates/backupninja.conf.erb b/templates/backupninja.conf.erb
index 960d39f..abc7c29 100644
--- a/templates/backupninja.conf.erb
+++ b/templates/backupninja.conf.erb
@@ -8,9 +8,15 @@ when = <%= send(:when) %>
reportemail = <%= reportemail %>
reportsuccess = <%= reportsuccess ? 'yes' : 'no' %>
reportwarning = <%= reportwarning ? 'yes' : 'no' %>
-reporthost = <%= reporthost %>
-reportuser = <%= reportuser %>
-reportdirectory = <%= reportdirectory %>
+<% if reporthost.is_a? String -%>
+<%= 'reporthost = ' + reporthost %>
+<% end -%>
+<% if reportuser.is_a? String -%>
+<%= 'reportuser = ' + reportuser %>
+<% end -%>
+<% if reportdirectory.is_a? String -%>
+<%= 'reportdirectory = ' + reportdirectory %>
+<% end -%>
logfile = <%= logfile %>
configdirectory = <%= configdir %>
scriptdirectory = <%= scriptdir %>