File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ You can control a few settings including the identity used and the authtoken use
64
64
- ` ZEROTIER_API_SECRET ` : replaces the ` authtoken.secret ` before booting and allows you to manage the control socket's authentication key.
65
65
- ` ZEROTIER_IDENTITY_PUBLIC ` : the ` identity.public ` file for zerotier-one. Use ` zerotier-idtool ` to generate one of these for you.
66
66
- ` ZEROTIER_IDENTITY_SECRET ` : the ` identity.secret ` file for zerotier-one. Use ` zerotier-idtool ` to generate one of these for you.
67
+ - ` ZEROTIER_LOCAL_CONF ` : Sets the the ` local.conf ` file content for zerotier-one
67
68
68
69
### Tips
69
70
Original file line number Diff line number Diff line change @@ -9,15 +9,16 @@ mkztfile() {
9
9
file=$1
10
10
mode=$2
11
11
content=$3
12
-
12
+ echo " creating $file "
13
13
mkdir -p /var/lib/zerotier-one
14
- echo " $content " > " /var/lib/zerotier-one/$file "
14
+ echo -n " $content " > " /var/lib/zerotier-one/$file "
15
15
chmod " $mode " " /var/lib/zerotier-one/$file "
16
16
}
17
17
18
18
if [ " x$ZEROTIER_API_SECRET " != " x" ]
19
19
then
20
20
mkztfile authtoken.secret 0600 " $ZEROTIER_API_SECRET "
21
+ mkztfile metricstoken.secret 0600 " $ZEROTIER_API_SECRET "
21
22
fi
22
23
23
24
if [ " x$ZEROTIER_IDENTITY_PUBLIC " != " x" ]
30
31
mkztfile identity.secret 0600 " $ZEROTIER_IDENTITY_SECRET "
31
32
fi
32
33
34
+ if [ " x$ZEROTIER_LOCAL_CONF " != " x" ]
35
+ then
36
+ mkztfile local.conf 0644 " $ZEROTIER_LOCAL_CONF "
37
+ fi
38
+
33
39
mkztfile zerotier-one.port 0600 " 9993"
34
40
35
41
killzerotier () {
You can’t perform that action at this time.
0 commit comments