MXS-2969: Invert user check conditional

The conditional was inverted and the user was created if it already
existed.
This commit is contained in:
Markus Mäkelä 2020-04-22 14:38:17 +03:00
parent be567b6029
commit fe44fd8a87
No known key found for this signature in database
GPG Key ID: 5CE746D557ACC499

View File

@ -14,7 +14,7 @@ mkdir -p @MAXSCALE_VARDIR@/run/maxscale
# Create MaxScale user if it doesnt' exist
getent passwd maxscale > /dev/null
if [ $? -eq 0 ]
if [ $? -ne 0 ]
then
groupadd -r maxscale
useradd -r -s /bin/false -g maxscale maxscale