mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-19 04:57:53 +00:00
Script to quickly generate test docker env files.
This commit is contained in:
parent
9a25651151
commit
e33adad8f5
11
examples/docker/maketestenv.sh
Executable file
11
examples/docker/maketestenv.sh
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user