Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxilleas Pipinellis <axilleas@archlinux.gr>2013-05-07 10:14:03 +0400
committerAxilleas Pipinellis <axilleas@archlinux.gr>2013-05-07 15:44:49 +0400
commit13dcc390cb1f930b42d62ad273d6c157fd90cc72 (patch)
tree925e334b29864e496ca8b44649f9d65f08945479 /lib/backup
parent53413f128d049a7f45e4b3daf3dd0c3408a777e9 (diff)
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')
-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