diff --git a/entrypoint b/entrypoint index 9edf409..7a49d76 100755 --- a/entrypoint +++ b/entrypoint @@ -44,7 +44,7 @@ function createUser() { if [ -n "$gid" ]; then useraddOptions="$useraddOptions --gid $gid" - if [ $(cat /etc/group | cut -d: -f3 | grep -q "$gid") ]; then + if ! $(cat /etc/group | cut -d: -f3 | grep -q "$gid"); then groupadd --gid $gid $gid fi fi