diff options
author | Vinnie Okada <vokada@mrvinn.com> | 2015-03-28 17:38:48 +0300 |
---|---|---|
committer | Vinnie Okada <vokada@mrvinn.com> | 2015-03-28 17:38:48 +0300 |
commit | 0f78d92e4cfaf5c6674701fdf54a7188686cb8eb (patch) | |
tree | 0b312ffd742e172acf08b7509cb87536a60d4e80 /lib/backup/manager.rb | |
parent | 6664da431aaa9f9a521323004420bcf700af4306 (diff) |
Don't use chmod_R for backup tars
When creating backup tar files, only change permissions on the `db`,
`uploads`, and `repositories` directories, not their contents.
Diffstat (limited to 'lib/backup/manager.rb')
-rw-r--r-- | lib/backup/manager.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/backup/manager.rb b/lib/backup/manager.rb index afd05897509..d445150c55e 100644 --- a/lib/backup/manager.rb +++ b/lib/backup/manager.rb @@ -17,7 +17,7 @@ module Backup file << s.to_yaml.gsub(/^---\n/,'') end - FileUtils.chmod_R(0700, %w{db uploads repositories}) + FileUtils.chmod(0700, %w{db uploads repositories}) # create archive $progress.print "Creating backup archive: #{tar_file} ... " |