Browse Source

Merge pull request #14596 from girirajsharma/ES-RPM

rpm uses non-portable `--system` flag to `useradd`
Lee Hinman 9 years ago
parent
commit
42745c8c53
1 changed files with 1 additions and 1 deletions
  1. 1 1
      distribution/src/main/packaging/scripts/preinst

+ 1 - 1
distribution/src/main/packaging/scripts/preinst

@@ -62,7 +62,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 \