From 13dcc390cb1f930b42d62ad273d6c157fd90cc72 Mon Sep 17 00:00:00 2001 From: Axilleas Pipinellis Date: Tue, 7 May 2013 09:14:03 +0300 Subject: 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 --- lib/backup/database.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/backup/database.rb') 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 -- cgit v1.2.1