github.com/honeycombio/honeytail@v1.9.0/preinstall (about)

     1  #!/bin/sh
     2  set -e
     3  
     4  USER="honeycomb"
     5  GROUP="honeycomb"
     6  
     7  # Create service group and user if they doesn't already exist
     8  if ! getent group $GROUP >/dev/null
     9  then
    10      if type "groupadd" > /dev/null 2>&1; then
    11          groupadd --system $GROUP >/dev/null
    12      else
    13          addgroup --system $GROUP >/dev/null
    14      fi
    15  fi
    16  
    17  if ! getent passwd $USER >/dev/null
    18  then
    19          useradd \
    20            --system \
    21            -g $GROUP \
    22            --home /nonexistent \
    23            --shell /bin/false \
    24            $USER >/dev/null
    25  fi
    26  
    27  usermod -a -G adm honeycomb