mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-27 10:28:28 +00:00
rpm uses non-portable --system
flag to useradd
This commit is contained in:
parent
f03196193f
commit
7ac3fb2c0c
@ -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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user