From 7ac3fb2c0c367c4a4a020462f0957f9ddb9728ea Mon Sep 17 00:00:00 2001 From: girirajsharma Date: Sat, 7 Nov 2015 11:35:37 +0530 Subject: [PATCH] rpm uses non-portable `--system` flag to `useradd` --- distribution/src/main/packaging/scripts/preinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distribution/src/main/packaging/scripts/preinst b/distribution/src/main/packaging/scripts/preinst index d3df84ecd02..6bd48751024 100644 --- a/distribution/src/main/packaging/scripts/preinst +++ b/distribution/src/main/packaging/scripts/preinst @@ -64,7 +64,7 @@ case "$1" in # Create elasticsearch user if not existing if ! id $ES_USER > /dev/null 2>&1 ; then echo -n "Creating $ES_USER user..." - useradd --system \ + useradd -r \ -M \ --gid "$ES_GROUP" \ --shell /sbin/nologin \