Skip to content

Instantly share code, notes, and snippets.

@cap10morgan
Created July 8, 2014 22:27
Show Gist options
  • Save cap10morgan/9a1e5fdd5bfc01bee15f to your computer and use it in GitHub Desktop.
Save cap10morgan/9a1e5fdd5bfc01bee15f to your computer and use it in GitHub Desktop.
new coreos/etcd wrapper script
#!/bin/sh
IP_ADDR=$(ip addr show eth0 | grep 'inet ' | awk '{print $2}' | cut -d/ -f1)
exec /opt/etcd/bin/etcd -addr $IP_ADDR:4001 -peer-addr $IP_ADDR:7001 "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment