Feature: git:wrapper user when uploading git-ssh.sh
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
Direzione di ricerca
Inizia con il task git:wrapper e il relativo caricamento di git-ssh.sh, quindi leggi le issue correlate #154 e #191 per comprendere il contesto dell’esecuzione dei comandi come un altro utente. Traccia in che modo command_map influisce sul caricamento e sul chmod finale, e definisci come completato il fatto di avere un modo supportato per portare a termine questo workflow per deployuser.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
This is related to #154, #191, and probably others.
I'm trying to run all of the commands as a different user than the one I connect with, and it works in general with the following:
SSHKit.config.command_map = Hash.new do |hash, command|
hash[command] = "sudo -u deployuser #{command}"
end
But the git:wrapper task does an upload of git-ssh.sh file, which ends up with my user as the owner, not deployuser. The last line of the task then fails because it tries to run chmod on this file as deployuser.
Is there a way to control the permissions on upload? I'm not too familiar with this part of capistrano and the purpose of the git:wrapper/how it works, so maybe trying to play with the permissions on that file isnt the solution, but any kind of workaround or general guidance would be appreciated.
- Lingua principale
- Ruby
- Stelle
- 1.2k
- Fork
- 257
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di capistrano/sshkit
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
capistrano/sshkit#563 · 6 reazioni ·
-
No redaction for with values Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
capistrano/sshkit#562 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
capistrano/sshkit#554 · 3 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
capistrano/sshkit#543 · 2 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 45/100
capistrano/sshkit#518 · 1 commento ·
Tutte le issue di capistrano/sshkit
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
TheOdinProject/curriculum#31417 · 2 commenti ·
-
Allow faraday-http-cache 3.x Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
glossarist/glossarist-ruby#238 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
palladius/rails8-app-on-gcp#145 ·