2018-01-05 11:36:55 +08:00
|
|
|
getent passwd ztncui || useradd --system --home-dir /opt/key-networks/ztncui --shell /bin/false ztncui
|
2018-01-05 14:04:32 +08:00
|
|
|
if [ $(getent group zerotier-one) ]; then
|
|
|
|
echo "Adding user ztncui to group zerotier-one..."
|
|
|
|
usermod -a -G zerotier-one ztncui
|
|
|
|
chmod g+r /var/lib/zerotier-one/authtoken.secret
|
|
|
|
else
|
|
|
|
echo "Could not add user ztncui to group zerotier-one... is zerotier-one installed?"
|
|
|
|
fi
|