From 1dce0ccb8349185a644b0616acc0f633f232f919 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 16 Apr 2018 16:09:08 -0400 Subject: [PATCH] fix if when no currentid --- src/Admin/entrypoint.sh | 4 ++-- src/Api/entrypoint.sh | 4 ++-- src/Icons/entrypoint.sh | 4 ++-- src/Identity/entrypoint.sh | 4 ++-- util/Attachments/entrypoint.sh | 4 ++-- util/MsSql/entrypoint.sh | 4 ++-- util/Nginx/entrypoint.sh | 4 ++-- util/Setup/entrypoint.sh | 4 ++-- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/Admin/entrypoint.sh b/src/Admin/entrypoint.sh index f4869f80f1..daece81b20 100644 --- a/src/Admin/entrypoint.sh +++ b/src/Admin/entrypoint.sh @@ -28,7 +28,7 @@ fi if [ $CURRENTGID ] then - if [ $CURRENTGID != $LGID ] + if [ "$CURRENTGID" != "$LGID" ] then groupmod -g $LGID $GROUPNAME fi @@ -38,7 +38,7 @@ fi # Create user and assign group -if [ $NOUSER == 0 ] && [ $CURRENTUID != $LUID ] +if [ $NOUSER == 0 ] && [ "$CURRENTUID" != "$LUID" ] then usermod -u $LUID $USERNAME elif [ $NOUSER == 1 ] diff --git a/src/Api/entrypoint.sh b/src/Api/entrypoint.sh index 23eb89acfe..575145aea3 100644 --- a/src/Api/entrypoint.sh +++ b/src/Api/entrypoint.sh @@ -28,7 +28,7 @@ fi if [ $CURRENTGID ] then - if [ $CURRENTGID != $LGID ] + if [ "$CURRENTGID" != "$LGID" ] then groupmod -g $LGID $GROUPNAME fi @@ -38,7 +38,7 @@ fi # Create user and assign group -if [ $NOUSER == 0 ] && [ $CURRENTUID != $LUID ] +if [ $NOUSER == 0 ] && [ "$CURRENTUID" != "$LUID" ] then usermod -u $LUID $USERNAME elif [ $NOUSER == 1 ] diff --git a/src/Icons/entrypoint.sh b/src/Icons/entrypoint.sh index 34be22803f..db819ba726 100644 --- a/src/Icons/entrypoint.sh +++ b/src/Icons/entrypoint.sh @@ -28,7 +28,7 @@ fi if [ $CURRENTGID ] then - if [ $CURRENTGID != $LGID ] + if [ "$CURRENTGID" != "$LGID" ] then groupmod -g $LGID $GROUPNAME fi @@ -38,7 +38,7 @@ fi # Create user and assign group -if [ $NOUSER == 0 ] && [ $CURRENTUID != $LUID ] +if [ $NOUSER == 0 ] && [ "$CURRENTUID" != "$LUID" ] then usermod -u $LUID $USERNAME elif [ $NOUSER == 1 ] diff --git a/src/Identity/entrypoint.sh b/src/Identity/entrypoint.sh index b8a5a3f5e9..f11095ad5a 100644 --- a/src/Identity/entrypoint.sh +++ b/src/Identity/entrypoint.sh @@ -28,7 +28,7 @@ fi if [ $CURRENTGID ] then - if [ $CURRENTGID != $LGID ] + if [ "$CURRENTGID" != "$LGID" ] then groupmod -g $LGID $GROUPNAME fi @@ -38,7 +38,7 @@ fi # Create user and assign group -if [ $NOUSER == 0 ] && [ $CURRENTUID != $LUID ] +if [ $NOUSER == 0 ] && [ "$CURRENTUID" != "$LUID" ] then usermod -u $LUID $USERNAME elif [ $NOUSER == 1 ] diff --git a/util/Attachments/entrypoint.sh b/util/Attachments/entrypoint.sh index 6bd847a104..8ba950614b 100644 --- a/util/Attachments/entrypoint.sh +++ b/util/Attachments/entrypoint.sh @@ -28,7 +28,7 @@ fi if [ $CURRENTGID ] then - if [ $CURRENTGID != $LGID ] + if [ "$CURRENTGID" != "$LGID" ] then groupmod -g $LGID $GROUPNAME fi @@ -38,7 +38,7 @@ fi # Create user and assign group -if [ $NOUSER == 0 ] && [ $CURRENTUID != $LUID ] +if [ $NOUSER == 0 ] && [ "$CURRENTUID" != "$LUID" ] then usermod -u $LUID $USERNAME elif [ $NOUSER == 1 ] diff --git a/util/MsSql/entrypoint.sh b/util/MsSql/entrypoint.sh index 6d380ae992..4482493e12 100644 --- a/util/MsSql/entrypoint.sh +++ b/util/MsSql/entrypoint.sh @@ -28,7 +28,7 @@ fi if [ $CURRENTGID ] then - if [ $CURRENTGID != $LGID ] + if [ "$CURRENTGID" != "$LGID" ] then groupmod -g $LGID $GROUPNAME fi @@ -38,7 +38,7 @@ fi # Create user and assign group -if [ $NOUSER == 0 ] && [ $CURRENTUID != $LUID ] +if [ $NOUSER == 0 ] && [ "$CURRENTUID" != "$LUID" ] then usermod -u $LUID $USERNAME elif [ $NOUSER == 1 ] diff --git a/util/Nginx/entrypoint.sh b/util/Nginx/entrypoint.sh index 48f087ec05..2083da2e96 100644 --- a/util/Nginx/entrypoint.sh +++ b/util/Nginx/entrypoint.sh @@ -28,7 +28,7 @@ fi if [ $CURRENTGID ] then - if [ $CURRENTGID != $LGID ] + if [ "$CURRENTGID" != "$LGID" ] then groupmod -g $LGID $GROUPNAME fi @@ -38,7 +38,7 @@ fi # Create user and assign group -if [ $NOUSER == 0 ] && [ $CURRENTUID != $LUID ] +if [ $NOUSER == 0 ] && [ "$CURRENTUID" != "$LUID" ] then usermod -u $LUID $USERNAME elif [ $NOUSER == 1 ] diff --git a/util/Setup/entrypoint.sh b/util/Setup/entrypoint.sh index 444a07c390..852366ceb1 100644 --- a/util/Setup/entrypoint.sh +++ b/util/Setup/entrypoint.sh @@ -28,7 +28,7 @@ fi if [ $CURRENTGID ] then - if [ $CURRENTGID != $LGID ] + if [ "$CURRENTGID" != "$LGID" ] then groupmod -g $LGID $GROUPNAME fi @@ -38,7 +38,7 @@ fi # Create user and assign group -if [ $NOUSER == 0 ] && [ $CURRENTUID != $LUID ] +if [ $NOUSER == 0 ] && [ "$CURRENTUID" != "$LUID" ] then usermod -u $LUID $USERNAME elif [ $NOUSER == 1 ]