From 0eef1befc764100cb84f6ba307dbd87f6de776d9 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Fri, 23 May 2014 18:10:39 +0200 Subject: [PATCH] Hide database password from reconfigure output --- files/gitlab-cookbooks/gitlab/recipes/postgresql.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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