aboutsummaryrefslogtreecommitdiff
path: root/templates/pgsql.conf.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/pgsql.conf.erb')
-rw-r--r--templates/pgsql.conf.erb8
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/pgsql.conf.erb b/templates/pgsql.conf.erb
index 7781ef4..5ffa89c 100644
--- a/templates/pgsql.conf.erb
+++ b/templates/pgsql.conf.erb
@@ -4,8 +4,10 @@ vsname = <%= vsname %>
<% if backupdir %>
backupdir = <%= backupdir %>
<% end %>
-<% if databases %>
-databases = <%= databases %>
-<% end %>
+<% if databases.is_a? String -%>
+<%= 'databases = ' + databases %>
+<% elsif databases.is_a? Array -%>
+<%= "databases = " + databases.map { |i| "#{i}" }.join(" ") %>
+<% end -%>
compress = <%= compress ? 'yes' : 'no' %>