ssh-cluster-config: fix sudo user
Some checks are pending
continuous-integration/laminar-eldarion Build failed with exit code 123 after 3 seconds
Some checks are pending
continuous-integration/laminar-eldarion Build failed with exit code 123 after 3 seconds
This commit is contained in:
parent
7d54bdf5de
commit
994d954703
1 changed files with 1 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
task_begin "Configuring ssh";
|
task_begin "Configuring ssh";
|
||||||
|
|
||||||
while read -r username; do
|
while read -r username; do
|
||||||
|
username="$(basename "${username}")"; # find outputs the full path
|
||||||
sudo -u "${username}" bash -c 'ssh -T git@git.starbeamrainbowlabs.com || ssh-keyscan -H git.starbeamrainbowlabs.com >>$HOME/.ssh/known_hosts';
|
sudo -u "${username}" bash -c 'ssh -T git@git.starbeamrainbowlabs.com || ssh-keyscan -H git.starbeamrainbowlabs.com >>$HOME/.ssh/known_hosts';
|
||||||
done < <(find /home -mindepth 1 -maxdepth 1 -type d);
|
done < <(find /home -mindepth 1 -maxdepth 1 -type d);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue