update version

This commit is contained in:
Thomas Legay 2023-11-02 09:37:18 +01:00
parent 2fa91a6bf5
commit 337df6c751
16 changed files with 23 additions and 23 deletions

View file

@ -1,6 +1,6 @@
#!/bin/bash
VERSION=2.1.1
VERSION=2.1.2
APP=babybuddy
DEPOT=https://github.com/babybuddy/babybuddy.git
GIT_VERSION=v${VERSION}

View file

@ -1,11 +1,8 @@
#!/bin/bash
APP=babybuddy
HOMEDIR=/var/lib/babybuddy/
[ -d ${HOMEDIR} ] || mkdir -p ${HOMEDIR}
id ${APP} &> /dev/null || useradd ${APP} -r -s /bin/false -d ${HOMEDIR}
chown ${APP}:${APP} ${HOMEDIR}
id $APP &> /dev/null || useradd $APP -r -s /bin/false -md /var/lib/$APP/
chown -R $APP:$APP /var/lib/$APP/
systemctl | grep ${APP} | grep -q running && systemctl daemon-reload && systemctl restart ${APP}
@ -17,3 +14,6 @@ then
systemctl restart ${APP}
fi
fi