github.com/dahs81/otto@v0.2.1-0.20160126165905-6400716cf085/builtin/foundation/consul/data/common/deploy/module-aws-simple/setup.sh (about) 1 #!/bin/bash 2 3 # Write the flags to a temporary file and move it into place 4 cat >/tmp/consul_flags << EOF 5 export CONSUL_FLAGS="-server -bootstrap -data-dir=/mnt/consul" 6 EOF 7 sudo mv /tmp/consul_flags /etc/service/consul 8 chmod 0644 /etc/service/consul 9 10 # Restart or start consul 11 sudo stop consul || true 12 sudo start consul