From 1f4b0653b9d6bfc4130fc9f0066f15f84b939fe7 Mon Sep 17 00:00:00 2001 From: "flow.gunso" Date: Tue, 9 Apr 2019 14:38:20 +0200 Subject: [PATCH] Only redirect stdout, fix existing group detection --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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