From 994d954703532d125f2d70661288f4d1b0b6b942 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 6 Aug 2022 21:51:16 +0100 Subject: [PATCH] ssh-cluster-config: fix sudo user --- src/steps-postinstall/100-ssh-cluster-config.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/steps-postinstall/100-ssh-cluster-config.sh b/src/steps-postinstall/100-ssh-cluster-config.sh index c21fcd2..8144f83 100755 --- a/src/steps-postinstall/100-ssh-cluster-config.sh +++ b/src/steps-postinstall/100-ssh-cluster-config.sh @@ -3,6 +3,7 @@ task_begin "Configuring ssh"; 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'; done < <(find /home -mindepth 1 -maxdepth 1 -type d);