Commit 672c41b59a41c378a1b4dfef2d704b86fa92a635
1 parent
46d9a171
Exists in
master
and in
17 other branches
Remove chef_db_dir because we do not use erchef
Showing
1 changed file
with
0 additions
and
2 deletions
Show diff stats
files/gitlab-cookbooks/gitlab/recipes/postgresql.rb
| ... | ... | @@ -19,7 +19,6 @@ postgresql_dir = node['gitlab']['postgresql']['dir'] |
| 19 | 19 | postgresql_data_dir = node['gitlab']['postgresql']['data_dir'] |
| 20 | 20 | postgresql_data_dir_symlink = File.join(postgresql_dir, "data") |
| 21 | 21 | postgresql_log_dir = node['gitlab']['postgresql']['log_directory'] |
| 22 | -chef_db_dir = Dir.glob("/opt/gitlab/embedded/service/erchef/lib/chef_db-*").first | |
| 23 | 22 | |
| 24 | 23 | user node['gitlab']['postgresql']['username'] do |
| 25 | 24 | system true |
| ... | ... | @@ -144,7 +143,6 @@ sql_user = node['gitlab']['postgresql']['sql_user'] |
| 144 | 143 | sql_user_passwd = node['gitlab']['postgresql']['sql_password'] |
| 145 | 144 | |
| 146 | 145 | execute "#{bin_dir}/psql --port #{pg_port} -d '#{db_name}' -c \"CREATE USER #{sql_user} WITH ENCRYPTED PASSWORD '#{sql_user_passwd}'\"" do |
| 147 | - cwd chef_db_dir | |
| 148 | 146 | user pg_user |
| 149 | 147 | not_if { !pg_helper.is_running? || pg_helper.sql_user_exists? } |
| 150 | 148 | end | ... | ... |