Add user ztncui to group zerotier-one. Depends zerotier-one

This commit is contained in:
Key Networks 2018-01-05 14:04:32 +08:00
parent 04c3d55227
commit 95b43de40f
2 changed files with 8 additions and 0 deletions

View File

@ -1 +1,8 @@
getent passwd ztncui || useradd --system --home-dir /opt/key-networks/ztncui --shell /bin/false ztncui
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

View File

@ -80,6 +80,7 @@ GENERAL_FPM_FLAGS="
--chdir $STAGING_DIR
--package $PKG_DIR
--directories /opt/key-networks
--depends zerotier-one
--before-install before-install.sh
--after-install after-install.sh
--before-remove before-remove.sh