Add user ztncui to group zerotier-one. Depends zerotier-one
This commit is contained in:
parent
04c3d55227
commit
95b43de40f
@ -1 +1,8 @@
|
|||||||
getent passwd ztncui || useradd --system --home-dir /opt/key-networks/ztncui --shell /bin/false ztncui
|
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
|
||||||
|
@ -80,6 +80,7 @@ GENERAL_FPM_FLAGS="
|
|||||||
--chdir $STAGING_DIR
|
--chdir $STAGING_DIR
|
||||||
--package $PKG_DIR
|
--package $PKG_DIR
|
||||||
--directories /opt/key-networks
|
--directories /opt/key-networks
|
||||||
|
--depends zerotier-one
|
||||||
--before-install before-install.sh
|
--before-install before-install.sh
|
||||||
--after-install after-install.sh
|
--after-install after-install.sh
|
||||||
--before-remove before-remove.sh
|
--before-remove before-remove.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user