rpm uses non-portable `--system` flag to `useradd`

This commit is contained in:
girirajsharma 2015-11-07 11:35:37 +05:30
parent f03196193f
commit 7ac3fb2c0c
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ case "$1" in
# Create elasticsearch user if not existing # Create elasticsearch user if not existing
if ! id $ES_USER > /dev/null 2>&1 ; then if ! id $ES_USER > /dev/null 2>&1 ; then
echo -n "Creating $ES_USER user..." echo -n "Creating $ES_USER user..."
useradd --system \ useradd -r \
-M \ -M \
--gid "$ES_GROUP" \ --gid "$ES_GROUP" \
--shell /sbin/nologin \ --shell /sbin/nologin \