update version
This commit is contained in:
parent
2fa91a6bf5
commit
337df6c751
16 changed files with 23 additions and 23 deletions
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue