capistrano / capistrano/sshkit

Bug: upload! within an `as 'root'` block will fail.

Open
#329 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
1.2k
Forks
257
PR merge metrics
No merged PRs in 30d

Description

The following will usually fail:

```
task :foo do
on roles(:web) do
as "root" do
upload! "/tmp/foo", "/var/bar/cuux"
end
end
end
```

Since scp will not su to root. Would you accept a PR that allows `upload!` to upload to `/tmp` and then `mv` the file into place, if the current user has been switched?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.