Skip to content

Commit

Permalink
Merge pull request #153 from weslambert/master
Browse files Browse the repository at this point in the history
fix transport preservation and add watermark preservation
  • Loading branch information
dougburks authored Jan 16, 2018
2 parents 4fab972 + 63096e6 commit 7f3a5ea
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions usr/sbin/so-elastic-configure-stack
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,15 @@ else
# If config exists, back it up, write the new config file, and then transfer transport settings
cp -av $ES_YAML $ES_YAML_BAK
cp -av $SRC/$ES_YAML $ES_YAML
# Preserve transport settings if present
for i in $(grep transport $ES_YAML_BAK); do
echo $i >> $ES_YAML
done

# Preserve custom settings, if present
# Transport settings
# https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-transport.html
grep transport $ES_YAML_BAK >> $ES_YAML

# Low/High watermark settings
# https://www.elastic.co/guide/en/elasticsearch/reference/current/disk-allocator.html#disk-allocator
grep watermark $ES_YAML_BAK >> $ES_YAML
fi

# Set cluster name
Expand Down

0 comments on commit 7f3a5ea

Please sign in to comment.