Browse Source

fix if when no currentid

pull/208/head
Kyle Spearrin 8 years ago
parent
commit
dba596bf35
  1. 4
      entrypoint.sh

4
entrypoint.sh

@ -28,7 +28,7 @@ fi
if [ $CURRENTGID ] if [ $CURRENTGID ]
then then
if [ $CURRENTGID != $LGID ] if [ "$CURRENTGID" != "$LGID" ]
then then
groupmod -g $LGID $GROUPNAME groupmod -g $LGID $GROUPNAME
fi fi
@ -38,7 +38,7 @@ fi
# Create user and assign group # Create user and assign group
if [ $NOUSER == 0 ] && [ $CURRENTUID != $LUID ] if [ $NOUSER == 0 ] && [ "$CURRENTUID" != "$LUID" ]
then then
usermod -u $LUID $USERNAME usermod -u $LUID $USERNAME
elif [ $NOUSER == 1 ] elif [ $NOUSER == 1 ]

Loading…
Cancel
Save