From e8637fa0c109b53cc0644014b69b40fa67cdf906 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 6 Mar 2022 20:09:29 +0300 Subject: [PATCH] Feat(playbooks/*/init-system.sh): Add user `phd` Ignore errors if the user already exists. --- playbooks/debian/init-system.sh | 2 ++ playbooks/redhat/init-system.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/playbooks/debian/init-system.sh b/playbooks/debian/init-system.sh index 2937b31..9fae195 100755 --- a/playbooks/debian/init-system.sh +++ b/playbooks/debian/init-system.sh @@ -8,6 +8,8 @@ fi host="$1" shift +ssh root@$host exec adduser phd + cd "`dirname \"$0\"`" && # Passwordless access isn't configured yet; use `ssh` connection sharing. diff --git a/playbooks/redhat/init-system.sh b/playbooks/redhat/init-system.sh index df2f22f..c4423a9 100755 --- a/playbooks/redhat/init-system.sh +++ b/playbooks/redhat/init-system.sh @@ -8,6 +8,8 @@ fi host="$1" shift +ssh root@$host exec adduser phd + cd "`dirname \"$0\"`" && # Passwordless access isn't configured yet; use `ssh` connection sharing. -- 2.39.5