Skip to content

Commit cf85161

Browse files
committed
## v6.0.1, 07/16/18
Quick fix for sudo psql command
1 parent 01b03f2 commit cf85161

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/capistrano/postgresql/psql_helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def psql(type, database, *args)
77
# Add the :pg_system_user to psql command since we aren't using sudo anymore
88
cmd = [ :psql, "-d #{database}", *args.unshift("-U #{fetch(:pg_system_user)}") ]
99
else
10-
cmd = [:sudo, "-i -u #{fetch(:pg_system_user)}", *cmd]
10+
cmd = [:sudo, "-i -u #{fetch(:pg_system_user)}", :psql, *args]
1111
end
1212
# Allow us to execute the different sshkit commands
1313
if type == 'test'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Capistrano
22
module Postgresql
3-
VERSION = '6.0.0'
3+
VERSION = '6.0.1'
44
end
55
end

0 commit comments

Comments
 (0)