From f5dd2c7de966459ad5a2ee1fd67d51a3332ad80c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Mon, 20 Apr 2020 14:52:11 +0200 Subject: [PATCH] Fix the command importing the schema on db creation It had an extra }, but this only fails when creating the databases --- site-cookbooks/kosmos-ejabberd/recipes/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site-cookbooks/kosmos-ejabberd/recipes/default.rb b/site-cookbooks/kosmos-ejabberd/recipes/default.rb index c11aaaa..7128867 100644 --- a/site-cookbooks/kosmos-ejabberd/recipes/default.rb +++ b/site-cookbooks/kosmos-ejabberd/recipes/default.rb @@ -122,7 +122,7 @@ hosts.each do |host| execute "create db schema #{host[:sql_database]}" do user "ejabberd" - command "psql #{host[:sql_database]}} < #{Chef::Config[:file_cache_path]}/pg.sql" + command "psql #{host[:sql_database]} < #{Chef::Config[:file_cache_path]}/pg.sql" action :nothing end