mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Merge pull request #1501 from spight/issue1500
Ensures that the git-ssh script is readable. Fixes #1500
This commit is contained in:
commit
56e1fef3a8
2 changed files with 2 additions and 1 deletions
|
@ -30,6 +30,7 @@ https://github.com/capistrano/capistrano/compare/v3.4.0...HEAD
|
|||
* Ensure task invocation within after hooks is namespace aware (@thickpaddy)
|
||||
* Deduplicate list of linked directories
|
||||
* Allow dot in :application name (@marcovtwout)
|
||||
* Fixed git-ssh permission error (@spight)
|
||||
|
||||
## `3.4.0`
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ namespace :git do
|
|||
on release_roles :all do
|
||||
execute :mkdir, "-p", "#{fetch(:tmp_dir)}/#{fetch(:application)}/"
|
||||
upload! StringIO.new("#!/bin/sh -e\nexec /usr/bin/ssh -o PasswordAuthentication=no -o StrictHostKeyChecking=no \"$@\"\n"), "#{fetch(:tmp_dir)}/#{fetch(:application)}/git-ssh.sh"
|
||||
execute :chmod, "+x", "#{fetch(:tmp_dir)}/#{fetch(:application)}/git-ssh.sh"
|
||||
execute :chmod, "+rx", "#{fetch(:tmp_dir)}/#{fetch(:application)}/git-ssh.sh"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue