diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-07-29 11:18:55 +0200 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-07-29 11:18:55 +0200 |
commit | c5aae3077335ab0eaafb73f51548d4c85413a1d1 (patch) | |
tree | 62bd9db97d6c60fcb0f4be8e8ac77226750fbb5e /lib/backup/database.rb | |
parent | 5efb58b09a9c0c794a66ae0b46df4c7d58064b60 (diff) | |
download | gitlab-ce-c5aae3077335ab0eaafb73f51548d4c85413a1d1.tar.gz |
Set internal backup directory modes on create
This sidesteps problems with running 'chmod' on some CIFS mounts.
Diffstat (limited to 'lib/backup/database.rb')
-rw-r--r-- | lib/backup/database.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/backup/database.rb b/lib/backup/database.rb index c5a5396cbbf..8450019980f 100644 --- a/lib/backup/database.rb +++ b/lib/backup/database.rb @@ -7,7 +7,7 @@ module Backup def initialize @config = YAML.load_file(File.join(Rails.root,'config','database.yml'))[Rails.env] @db_dir = File.join(Gitlab.config.backup.path, 'db') - FileUtils.mkdir_p(@db_dir) unless Dir.exists?(@db_dir) + FileUtils.mkdir_p(@db_dir, mode: 0700)unless Dir.exists?(@db_dir) end def dump |