diff --git a/files/gitlab-cookbooks/gitlab/recipes/postgresql.rb b/files/gitlab-cookbooks/gitlab/recipes/postgresql.rb index 8a58b20..6783ed5 100644 --- a/files/gitlab-cookbooks/gitlab/recipes/postgresql.rb +++ b/files/gitlab-cookbooks/gitlab/recipes/postgresql.rb @@ -150,7 +150,8 @@ db_name = "gitlabhq_production" sql_user = node['gitlab']['postgresql']['sql_user'] sql_user_passwd = node['gitlab']['postgresql']['sql_password'] -execute "#{bin_dir}/psql --port #{pg_port} -d template1 -c \"CREATE USER #{sql_user} WITH ENCRYPTED PASSWORD '#{sql_user_passwd}'\"" do +execute "create #{sql_user} database user" do + command "#{bin_dir}/psql --port #{pg_port} -d template1 -c \"CREATE USER #{sql_user} WITH ENCRYPTED PASSWORD '#{sql_user_passwd}'\"" user pg_user not_if { !pg_helper.is_running? || pg_helper.sql_user_exists? } end -- libgit2 0.21.2