diff options
| author | mo khan <mo@mokhan.ca> | 2013-08-09 14:22:16 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2013-08-09 14:22:16 -0600 |
| commit | cad0386b70822532909ef0d178856a1279fc2e5b (patch) | |
| tree | a02ec4b7622559be270fd2a0600d4c88278b3dcd /config/recipes/postgresql.rb | |
| parent | 0f5075496d4eca5f4879c82cb360e90b7ac8d52a (diff) | |
add quotes around the password field for those crazy passwords with all sorts of interesting characters.
Diffstat (limited to 'config/recipes/postgresql.rb')
| -rw-r--r-- | config/recipes/postgresql.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/recipes/postgresql.rb b/config/recipes/postgresql.rb index 7ea9071..8788c4b 100644 --- a/config/recipes/postgresql.rb +++ b/config/recipes/postgresql.rb @@ -39,7 +39,7 @@ namespace :postgresql do backup_path = "#{shared_path}/backups" run "mkdir -p #{shared_path}/backups" - run "PGPASSWORD=#{postgresql_password} pg_dump -Fc --no-acl --no-owner -h #{postgresql_host} -U #{postgresql_user} #{postgresql_database} > #{backup_path}/#{filename}" + run "PGPASSWORD='#{postgresql_password}' pg_dump -Fc --no-acl --no-owner -h #{postgresql_host} -U #{postgresql_user} #{postgresql_database} > #{backup_path}/#{filename}" download("#{backup_path}/#{filename}", "tmp/#{filename}", :via => :scp) run_locally "cd tmp; rm database.dump; ln -s #{filename} database.dump" end |
