Skip to content

Commit

Permalink
## v6.0.1, 07/16/18
Browse files Browse the repository at this point in the history
Quick fix for sudo psql command
  • Loading branch information
NorseGaud committed Jul 16, 2018
1 parent 01b03f2 commit cf85161
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/capistrano/postgresql/psql_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion lib/capistrano/postgresql/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Capistrano
module Postgresql
VERSION = '6.0.0'
VERSION = '6.0.1'
end
end

0 comments on commit cf85161

Please sign in to comment.