Commit 72c72745f66538430480cba5b594c52852fedda0
1 parent
0c3c8e7c
Exists in
master
and in
17 other branches
Create backups directory during reconfigure
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
files/gitlab-cookbooks/gitlab/attributes/default.rb
... | ... | @@ -87,7 +87,7 @@ default['gitlab']['gitlab-rails']['ldap_bind_dn'] = "_the_full_dn_of_the_user_yo |
87 | 87 | default['gitlab']['gitlab-rails']['ldap_password'] = "_the_password_of_the_bind_user" |
88 | 88 | default['gitlab']['gitlab-rails']['ldap_allow_username_or_email_login'] = true |
89 | 89 | default['gitlab']['gitlab-rails']['satellites_path'] = "/var/opt/gitlab/git-data/gitlab-satellites" |
90 | -default['gitlab']['gitlab-rails']['backup_path'] = "tmp/backups" | |
90 | +default['gitlab']['gitlab-rails']['backup_path'] = "/var/opt/gitlab/backups" | |
91 | 91 | default['gitlab']['gitlab-rails']['gitlab_shell_path'] = "/opt/gitlab/embedded/service/gitlab-shell/" |
92 | 92 | default['gitlab']['gitlab-rails']['gitlab_shell_repos_path'] = "/var/opt/gitlab/git-data/repositories" |
93 | 93 | default['gitlab']['gitlab-rails']['gitlab_shell_hooks_path'] = "/opt/gitlab/embedded/service/gitlab-shell/hooks/" | ... | ... |
files/gitlab-cookbooks/gitlab/recipes/gitlab-rails.rb
... | ... | @@ -30,6 +30,7 @@ gitlab_rails_log_dir = node['gitlab']['gitlab-rails']['log_directory'] |
30 | 30 | gitlab_rails_working_dir, |
31 | 31 | gitlab_rails_tmp_dir, |
32 | 32 | gitlab_rails_public_uploads_dir, |
33 | + node['gitlab']['gitlab-rails']['backup_path'], | |
33 | 34 | gitlab_rails_log_dir |
34 | 35 | ].each do |dir_name| |
35 | 36 | directory dir_name do | ... | ... |