1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 05:00:19 -05:00

fix if when no currentid

This commit is contained in:
Kyle Spearrin 2018-04-16 16:09:08 -04:00
parent 0354233035
commit 1dce0ccb83
8 changed files with 16 additions and 16 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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