Created
July 8, 2014 22:27
-
-
Save cap10morgan/9a1e5fdd5bfc01bee15f to your computer and use it in GitHub Desktop.
new coreos/etcd wrapper script
This file contains 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/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