diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-10-09 12:15:42 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-10-09 12:15:42 -0700 |
commit | e33adad8f5b1bb64cc4c5b318a8fb95077407419 (patch) | |
tree | cb824022b9ac53e672d5af457877cfe919db78ad /examples | |
parent | 9a2565115119f4c56bada376974ed77c6b2661c7 (diff) | |
download | infinitytier-e33adad8f5b1bb64cc4c5b318a8fb95077407419.tar.gz infinitytier-e33adad8f5b1bb64cc4c5b318a8fb95077407419.zip |
Script to quickly generate test docker env files.
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/docker/maketestenv.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/docker/maketestenv.sh b/examples/docker/maketestenv.sh new file mode 100755 index 00000000..275692e1 --- /dev/null +++ b/examples/docker/maketestenv.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if [ -z "$1" -o -z "$2" ]; then + echo 'Usage: maketestenv.sh <output file e.g. test-01.env> <network ID>' + exit 1 +fi + +newid=`../../zerotier-idtool generate` + +echo "ZEROTIER_IDENTITY_SECRET=$newid" >$1 +echo "ZEROTIER_NETWORK=$2" >>$1 |