add quacamole sqlpage

This commit is contained in:
Thomas Legay 2023-11-21 01:24:31 +01:00
parent 337df6c751
commit a31db48ad0
43 changed files with 421 additions and 14 deletions

View file

@ -0,0 +1 @@
/etc/babybuddy/production.py

View file

@ -0,0 +1,8 @@
Package: babybuddy
Version: %VERSION%
Section: contrib
Priority: optional
Architecture: all
Depends: python3 ( >= 3.7 ), python-is-python3, python3-venv
Maintainer: Thomas Legay <thomas@lgy.fr>
Description: babybuddy

View file

@ -0,0 +1,19 @@
#!/bin/bash
APP=homeassistant
HOMEDIR=/var/lib/homeassistant/
[ -d ${HOMEDIR} ] || mkdir -p ${HOMEDIR}
id ${APP} &> /dev/null || useradd ${APP} -r -s /bin/false -d ${HOMEDIR}
chown ${APP}:${APP} ${HOMEDIR}
systemctl | grep ${APP} | grep -q running && systemctl daemon-reload && systemctl restart ${APP}
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