Only redirect stdout, fix existing group detection

This commit is contained in:
flow.gunso
2019-04-09 14:38:20 +02:00
parent 9968775927
commit 1f4b0653b9

View File

@@ -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