diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/backupninja.conf.erb | 12 | ||||
| -rw-r--r-- | templates/sys.conf.erb | 4 | 
2 files changed, 11 insertions, 5 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 %> diff --git a/templates/sys.conf.erb b/templates/sys.conf.erb index d15f821..a684e8b 100644 --- a/templates/sys.conf.erb +++ b/templates/sys.conf.erb @@ -14,5 +14,5 @@ partitions = <%= partitions ? 'yes' : 'no' %>  dosfdisk = <%= dosfdisk ? 'yes' : 'no' %>  hardware = <%= hardware ? 'yes' : 'no' %>  dohwinfo = <%= dohwinfo ? 'yes' : 'no' %> -luksheaders = <%= doluks ? 'no' : 'yes' %> -lvm = <%= dolvm ? 'no' : 'yes' %> +luksheaders = <%= doluks ? 'yes' : 'no' %> +lvm = <%= dolvm ? 'yes' : 'no' %>  | 
