Add budybase

This commit is contained in:
thomas 2023-05-01 00:17:30 +02:00
parent dbef6baf09
commit f6f7521ffe
20 changed files with 122 additions and 12 deletions

View File

@ -1,9 +1,10 @@
#!/bin/bash #!/bin/bash
VERSION=0.108.0-b.31 VERSION=0.108.0-b.34
APP=adguardhome APP=adguardhome
DEPOT=https://github.com/AdguardTeam/AdGuardHome.git DEPOT=https://github.com/AdguardTeam/AdGuardHome.git
GIT_VERSION=v${VERSION} GIT_VERSION=v${VERSION}
GIT_VERSION=v0.108.0-b.30
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M) DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=4 IMAGE_SIZE=4

View File

@ -0,0 +1,21 @@
#### babybuddy
##### Information
Site : https://docs.baby-buddy.net/
Source : https://github.com/babybuddy/babybuddy
##### Install
```bash
apt install -y wget ca-certificates
wget -qO - https://deb.lgy.fr/install.sh | bash
apt-get update
apt-get install -y babybuddy
#Edit /etc/babybuddy/production.py
systemctl enable --now babybuddy
```

32
ressources/babybuddy/debmaker Executable file
View File

@ -0,0 +1,32 @@
#!/bin/bash
VERSION=1.15.1
APP=babybuddy
DEPOT=https://github.com/babybuddy/babybuddy.git
GIT_VERSION=v${VERSION}
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=6
PACKAGE_DEPENDENCY=""
main(){
base_package_upgrade
install_package_dependency
get_git_source
makedeb
}
makedeb(){
PATH_DEB=/tmp/src/rootfs
mkdir -p ${PATH_DEB}/etc/babybuddy/
mv /tmp/${APP}/babybuddy/settings/production.example.py ${PATH_DEB}/etc/babybuddy/production.py
mkdir -p ${PATH_DEB}/usr/share/
cp -fr /tmp/${APP}/ ${PATH_DEB}/usr/share/
ln -s /etc/babybuddy/production.py ${PATH_DEB}/usr/share/babybuddy/babybuddy/settings/production.py
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
}

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=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}
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

View File

@ -0,0 +1 @@
DJANGO_SETTINGS_MODULE=babybuddy.settings.production

View File

@ -0,0 +1,20 @@
[Unit]
Description=babybuddy
After=network.target
[Service]
User=babybuddy
Group=babybuddy
EnvironmentFile=/etc/default/babybuddy
ExecStartPre=python3 -m venv /var/lib/babybuddy/.venv
ExecStartPre=/var/lib/babybuddy/.venv/bin/pip install -r /usr/share/babybuddy/requirements.txt
ExecStartPre=/var/lib/babybuddy/.venv/bin/python3 /usr/share/babybuddy/manage.py migrate
ExecStartPre=/var/lib/babybuddy/.venv/bin/python3 /usr/share/babybuddy/manage.py createcachetable
ExecStart=/var/lib/babybuddy/.venv/bin/python3 /usr/share/babybuddy/manage.py runserver 0.0.0.0:8000
WorkingDirectory=/var/lib/babybuddy
StandardOutput=inherit
StandardError=inherit
Restart=always
[Install]
WantedBy=multi-user.target

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=2023.3.1 VERSION=2023.4.0
APP=bitwarden-desktop APP=bitwarden-desktop
DEPOT=https://github.com/bitwarden/clients.git DEPOT=https://github.com/bitwarden/clients.git
GIT_VERSION=desktop-v${VERSION} GIT_VERSION=desktop-v${VERSION}

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=1.11.26 VERSION=1.11.30
APP=element-web APP=element-web
DEPOT=https://github.com/vector-im/element-web.git DEPOT=https://github.com/vector-im/element-web.git
GIT_VERSION=v${VERSION} GIT_VERSION=v${VERSION}

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=1.19.0 VERSION=1.19.2
APP=gitea APP=gitea
DEPOT=https://github.com/go-gitea/gitea.git DEPOT=https://github.com/go-gitea/gitea.git
GIT_VERSION=v${VERSION} GIT_VERSION=v${VERSION}

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=10.0.6 VERSION=10.0.7
APP=glpi APP=glpi
DEPOT=https://github.com/glpi-project/glpi.git DEPOT=https://github.com/glpi-project/glpi.git
GIT_VERSION=${VERSION} GIT_VERSION=${VERSION}

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
VERSION=1.30.11 VERSION=1.30.11
VERSION=2.0.13 VERSION=2.0.16
APP=kimai2 APP=kimai2
DEPOT=https://github.com/kevinpapst/kimai2.git DEPOT=https://github.com/kevinpapst/kimai2.git
GIT_VERSION=${VERSION} GIT_VERSION=${VERSION}

View File

@ -1,3 +1,9 @@
mautrix-whatsapp (0.8.4) UNRELEASED; urgency=medium
* First deb version
-- Thomas Legay <thomas@lgy.fr> Mon, 17 Sep 2022 21:08:37 +0200
mautrix-whatsapp (0.8.1) UNRELEASED; urgency=medium mautrix-whatsapp (0.8.1) UNRELEASED; urgency=medium
* First deb version * First deb version

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=0.8.3 VERSION=0.8.4
APP=mautrix-whatsapp APP=mautrix-whatsapp
DEPOT=https://github.com/mautrix/whatsapp.git DEPOT=https://github.com/mautrix/whatsapp.git
GIT_VERSION=v${VERSION} GIT_VERSION=v${VERSION}

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=0.46.0 VERSION=0.46.2
APP=metabase APP=metabase
DEPOT=https://github.com/metabase/metabase.git DEPOT=https://github.com/metabase/metabase.git
GIT_VERSION=v$VERSION GIT_VERSION=v$VERSION
@ -23,7 +23,7 @@ main(){
build() { build() {
cd /tmp/${APP}/ cd /tmp/${APP}/
PATH=$PATH:/usr/local/bin PATH=$PATH:/usr/local/bin
./bin/build ./bin/build.sh
} }
makedeb(){ makedeb(){

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
APP=rustdesk-server APP=rustdesk-server
VERSION=1.1.7-3 VERSION=1.1.7-4
GIT_VERSION=$VERSION GIT_VERSION=$VERSION
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye DEBIAN_VERSION_CODENAME=bullseye

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=1.28.0 VERSION=1.28.1
APP=vaultwarden APP=vaultwarden
GIT_VERSION=$VERSION GIT_VERSION=$VERSION
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)

View File

@ -1,10 +1,11 @@
#!/bin/bash #!/bin/bash
VERSION=1.30.3
VERSION=1.30.2 VERSION=1.30.2
APP=zigbee2mqtt APP=zigbee2mqtt
DEPOT=https://github.com/Koenkk/zigbee2mqtt.git DEPOT=https://github.com/Koenkk/zigbee2mqtt.git
GIT_VERSION=${VERSION} GIT_VERSION=${VERSION}
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M) DEB_VERSION=1.30.3.1-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=2 IMAGE_SIZE=2
PACKAGE_DEPENDENCY="nodejs make g++ gcc" PACKAGE_DEPENDENCY="nodejs make g++ gcc"