diff --git a/lib/capistrano/postgresql/psql_helpers.rb b/lib/capistrano/postgresql/psql_helpers.rb index 7ec0854..027b2a3 100644 --- a/lib/capistrano/postgresql/psql_helpers.rb +++ b/lib/capistrano/postgresql/psql_helpers.rb @@ -7,7 +7,7 @@ def psql(type, database, *args) # Add the :pg_system_user to psql command since we aren't using sudo anymore cmd = [ :psql, "-d #{database}", *args.unshift("-U #{fetch(:pg_system_user)}") ] else - cmd = [:sudo, "-i -u #{fetch(:pg_system_user)}", *cmd] + cmd = [:sudo, "-i -u #{fetch(:pg_system_user)}", :psql, *args] end # Allow us to execute the different sshkit commands if type == 'test' diff --git a/lib/capistrano/postgresql/version.rb b/lib/capistrano/postgresql/version.rb index 85353a5..4772ca0 100644 --- a/lib/capistrano/postgresql/version.rb +++ b/lib/capistrano/postgresql/version.rb @@ -1,5 +1,5 @@ module Capistrano module Postgresql - VERSION = '6.0.0' + VERSION = '6.0.1' end end