diff --git a/entrypoint.sh b/entrypoint.sh index c32a7d3..433f8f0 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -36,8 +36,8 @@ if [ "$UID" != "1000" ]; then fi # Change the group, if the $GID changed. if [ "$GID" != "1000" ]; then - getent group | grep ":$GID:" &>/dev/null - if [ $? -eq 1 ]; then + getent group | grep ":$GID:" >/dev/null + if [ $? -eq 0 ]; then usermod -g $GID -G 1000 $UNAME else groupmod -g $GID $UNAME