Add mealie

This commit is contained in:
thomas 2022-11-19 19:56:01 +01:00
parent 0394ae6c11
commit d020bef34c
33 changed files with 332 additions and 19 deletions

View file

@ -6,11 +6,11 @@ id ${APP} &> /dev/null || useradd ${APP} -r -s /bin/false -d /var/lib/${APP}
chown ${APP}:${APP} /var/lib/${APP}/
chown ${APP}:${APP} /var/lib/${APP}/*
if [[ $(systemctl list-unit-files | grep picapport.services) -eq 0 ]]
then
systemctl daemon-reload
if [ "$(systemctl is-active ${APP}.service)" != "inactive" ]
then
if [[ $(systemctl list-unit-files | grep ${APP}.services) -eq 0 ]]
then
systemctl daemon-reload
if [ "$(systemctl is-active ${APP}.service)" != "inactive" ]
then
systemctl restart ${APP}
fi
fi