From fe44fd8a879619770ec76226a285302b42d5665a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Wed, 22 Apr 2020 14:38:17 +0300 Subject: [PATCH] MXS-2969: Invert user check conditional The conditional was inverted and the user was created if it already existed. --- etc/postinst.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/postinst.in b/etc/postinst.in index 620d132b7..dc4853f00 100755 --- a/etc/postinst.in +++ b/etc/postinst.in @@ -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