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:
parent
0354233035
commit
1dce0ccb83
@ -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 ]
|
||||||
|
@ -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 ]
|
||||||
|
@ -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 ]
|
||||||
|
@ -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 ]
|
||||||
|
@ -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 ]
|
||||||
|
@ -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 ]
|
||||||
|
@ -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 ]
|
||||||
|
@ -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…
x
Reference in New Issue
Block a user