Add zigbee2mqtt

Add gotify (not work)
This commit is contained in:
root 2022-02-03 22:51:24 +01:00
parent 010f073bb0
commit ed80d22552
27 changed files with 181 additions and 24 deletions

4
ressources/gotify/build Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
cd /tmp/server/
. /root/.bashrc
PATH=$PATH:/usr/local/go/bin make

8
ressources/gotify/envinit Executable file
View file

@ -0,0 +1,8 @@
#/bin/bash
apt install -y build-essential git wget ca-certificates
wget -qO - https://deb.nodesource.com/setup_16.x | bash
wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list
apt-get update
apt-get install -y nodejs yarn
wget -qO - https://go.dev/dl/go1.17.6.linux-amd64.tar.gz | tar -C /usr/local -xz

View file

@ -0,0 +1,8 @@
#!/bin/bash
PATH_BUILD=$1
PATH_DEB=$2
GIT_VERSION=$3
cp ${PATH_BUILD}/tmp/gotify/dist/gotify ${PATH_DEB}/usr/bin/gotify
cp ${PATH_BUILD}/tmp/authelia/config.template.yml ${PATH_DEB}/etc/authelia/configuration.yml

6
ressources/gotify/prebuild Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
VERSION=$1
cd /tmp/
git clone https://github.com/gotify/server.git
cd server/
git checkout $VERSION

View file

@ -0,0 +1 @@
/etc/authelia/configuration.yml

View file

@ -0,0 +1,7 @@
Package: gotify
Version: %VERSION%
Section: base
Priority: optional
Architecture: all
Maintainer: Thomas Legay <thomas@syngate.fr>
Description: gotify

View file

@ -0,0 +1,4 @@
#!/bin/bash
id authelia &> /dev/null || useradd authelia -r -s /bin/false

View file

@ -0,0 +1,13 @@
[Unit]
Description=gotify service
Documentation=https://github.com/gotify/server
After=network.target
[Service]
User=gotify
Group=gotify
ExecStart=/usr/bin/gotify-linux-amd64
WorkingDirectory=/usr/lib/gotify
[Install]
WantedBy=multi-user.target