Skip to content

Commit

Permalink
2.2.0 Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DrTom committed Jun 23, 2020
1 parent 830da1d commit c0cd646
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/pg_tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ def data_restore(filename)

set_psql_env
command = 'pg_restore --data-only --exit-on-error ' \
' --single-transaction --no-privileges --no-owner ' \
' --disable-triggers --single-transaction --no-privileges --no-owner ' \
" -d #{Shellwords.escape(configuration['database'])} " \
" #{shell_filename }"
" --use-list=#{restore_list_file.path} " \
" #{shell_filename}"
unless Kernel.system(command)
raise 'Error during data_restore '
else
Expand Down

0 comments on commit c0cd646

Please sign in to comment.