Skip to content

Instantly share code, notes, and snippets.

@wkoszycki
Created June 7, 2017 08:38
Show Gist options
  • Save wkoszycki/2f18f08abd3e8189985adf236c58dac6 to your computer and use it in GitHub Desktop.
Save wkoszycki/2f18f08abd3e8189985adf236c58dac6 to your computer and use it in GitHub Desktop.
sed -i "$(eval "grep -n '### Kibana' /usr/local/bin/start.sh | awk -F ':' '{print \$1-1}'")i curl -X PUT localhost:9200/my_index_$environment/_settings --data-binary '@/tmp/index_settings.json';curl -X PUT localhost:9200/my_index_$environment/_settings --data-binary '@/tmp/index_settings.json';echo modified index settings" /usr/local/bin/start.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment