From 13dcc390cb1f930b42d62ad273d6c157fd90cc72 Mon Sep 17 00:00:00 2001 From: Axilleas Pipinellis Date: Tue, 7 May 2013 09:14:03 +0300 Subject: [PATCH] Fix errors during backup task. Fix #3785 --- doc/install/installation.md | 4 ++++ lib/backup/database.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/install/installation.md b/doc/install/installation.md index 9734034..19c613e 100644 --- a/doc/install/installation.md +++ b/doc/install/installation.md @@ -169,6 +169,10 @@ do so with caution! sudo chmod -R u+rwX tmp/pids/ sudo chmod -R u+rwX tmp/sockets/ + # Create 'uploads' directory otherwise backup will fail + sudo -u git -H mkdir public/uploads + sudo chmod -R u+rwX public/uploads + # Copy the example Puma config sudo -u git -H cp config/puma.rb.example config/puma.rb diff --git a/lib/backup/database.rb b/lib/backup/database.rb index cfa9971..2c43ed4 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 -- libgit2 0.21.2