2 useradd -d /opt/elasticsearch -s /sbin/nologin elasticsearch
3 chown -R elasticsearch:elasticsearch /opt/elasticsearch
7 if [ "$(vercmp $2 0.17.3)" -lt 0 ]; then
8 echo ' >> Note, when upgrading to this release, due to a bug in 0.17.x'
9 echo ' >> versions prior to 0.17.3, it is recommended to run flush against'
10 echo ' >> all indices before shutting down the cluster (or doing a rolling'
11 echo ' >> restart) if "delete_by_query" is used against specific types.'
16 chown -R elasticsearch:elasticsearch /opt/elasticsearch