~justin-fathomdb/charms/trusty/elasticsearch/trunk

« back to all changes in this revision

Viewing changes to hooks/config-changed

  • Committer: Paul Czarkowski
  • Date: 2012-11-04 04:06:00 UTC
  • Revision ID: paul@paulcz.net-20121104040600-as0rn4xdj2j5x19f
fixed some bugs, includeded files and md5 checksums for downloads.   tested with modified logstash charm, but need to update that to do relationships properly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
set -eux # -x for verbose logging to juju debug-log
 
4
HOME=`dirname $0`
 
5
. $HOME/common.sh
 
6
 
 
7
if [[ ${ZENMASTERS} != "false" ]]; then
 
8
  juju-log "Updating- discovery.zen.ping.unicast.hosts: \"${ZENMASTERS}\""
 
9
  echo "discovery.zen.ping.unicast.hosts: \"${ZENMASTERS}\"" >> /opt/elasticsearch/config/elasticsearch.yml
 
10
  /opt/elasticsearch/bin/service/elasticsearch condrestart
 
11
fi