Created
January 29, 2015 22:05
-
-
Save divideby0/34ecf33f1dfbb04dd48c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IP=`ifconfig en0 inet | grep inet | sed 's/.*inet *//; s/ .*//'` | |
CN="${IP##*.}" | |
sed -i "s/node.name: .*/node.name: es-${CN}/" /etc/elasticsearch/elasticsearch.yml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment