issue#91: before-upgrade.sh = before-install.sh

This commit is contained in:
Key Networks 2023-03-11 10:58:20 +08:00
parent 1fb103a07a
commit 3915b24b62
2 changed files with 9 additions and 1 deletions

View File

@ -0,0 +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

@ -1,6 +1,6 @@
{
"name": "ztncui",
"version": "0.8.11",
"version": "0.8.13",
"private": true,
"scripts": {
"start": "node ./bin/www",