From 2a40c74e5924bdd018867ee33003061ed22fc678 Mon Sep 17 00:00:00 2001 From: mischa Date: Fri, 23 Nov 2018 12:58:00 +0100 Subject: [PATCH] more accurate user checking --- deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index ad4a1ad..037cba5 100755 --- a/deploy.sh +++ b/deploy.sh @@ -287,7 +287,7 @@ create_users() { _owner=$(check_owner "$username" "$owner") if test -n "$_owner" then - if ! grep -e "^$_owner" /etc/passwd > /dev/null + if ! grep -e "^${_owner}:" /etc/passwd > /dev/null then useradd -m -G "$VMDUSERS" "$_owner" echo "$message" > "/home/${_owner}/.ssh/authorized_keys"