MXS-2969: Invert user check conditional
The conditional was inverted and the user was created if it already existed.
This commit is contained in:
parent
be567b6029
commit
fe44fd8a87
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user