summaryrefslogtreecommitdiff
path: root/lib/backup/database.rb
diff options
context:
space:
mode:
authorAxilleas Pipinellis <axilleas@archlinux.gr>2013-05-07 09:14:03 +0300
committerAxilleas Pipinellis <axilleas@archlinux.gr>2013-05-07 14:44:49 +0300
commit13dcc390cb1f930b42d62ad273d6c157fd90cc72 (patch)
tree925e334b29864e496ca8b44649f9d65f08945479 /lib/backup/database.rb
parent53413f128d049a7f45e4b3daf3dd0c3408a777e9 (diff)
downloadgitlab-ce-13dcc390cb1f930b42d62ad273d6c157fd90cc72.tar.gz
Fix errors during backup task. Fix #3785
By default there is no public/uploads directory when no attachments are uploaded. Prompt users to create the uploads directory during install otherwise the backup task will fail. Place mysqldump args in single quotes to avoid error if password contains special characters. Signed-off-by: Axilleas Pipinellis <axilleas@archlinux.gr>
Diffstat (limited to 'lib/backup/database.rb')
-rw-r--r--lib/backup/database.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/backup/database.rb b/lib/backup/database.rb
index cfa9971670c..2c43ed4f6e0 100644
--- a/lib/backup/database.rb
+++ b/lib/backup/database.rb
@@ -45,7 +45,7 @@ module Backup
'encoding' => '--default-character-set',
'password' => '--password'
}
- args.map { |opt, arg| "#{arg}=#{config[opt]}" if config[opt] }.compact.join(' ')
+ args.map { |opt, arg| "#{arg}='#{config[opt]}'" if config[opt] }.compact.join(' ')
end
def pg_env