Add zigbee2mqtt
Add gotify (not work)
This commit is contained in:
parent
010f073bb0
commit
ed80d22552
27 changed files with 181 additions and 24 deletions
4
ressources/gotify/build
Executable file
4
ressources/gotify/build
Executable 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
8
ressources/gotify/envinit
Executable 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
|
8
ressources/gotify/makedeb
Normal file
8
ressources/gotify/makedeb
Normal 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
6
ressources/gotify/prebuild
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
VERSION=$1
|
||||
cd /tmp/
|
||||
git clone https://github.com/gotify/server.git
|
||||
cd server/
|
||||
git checkout $VERSION
|
0
ressources/gotify/rootfs/DEBIAN/changelog
Normal file
0
ressources/gotify/rootfs/DEBIAN/changelog
Normal file
1
ressources/gotify/rootfs/DEBIAN/conffiles
Normal file
1
ressources/gotify/rootfs/DEBIAN/conffiles
Normal file
|
@ -0,0 +1 @@
|
|||
/etc/authelia/configuration.yml
|
7
ressources/gotify/rootfs/DEBIAN/control
Normal file
7
ressources/gotify/rootfs/DEBIAN/control
Normal file
|
@ -0,0 +1,7 @@
|
|||
Package: gotify
|
||||
Version: %VERSION%
|
||||
Section: base
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Maintainer: Thomas Legay <thomas@syngate.fr>
|
||||
Description: gotify
|
4
ressources/gotify/rootfs/DEBIAN/postinst
Executable file
4
ressources/gotify/rootfs/DEBIAN/postinst
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
id authelia &> /dev/null || useradd authelia -r -s /bin/false
|
||||
|
13
ressources/gotify/rootfs/etc/systemd/system/gotify.service
Normal file
13
ressources/gotify/rootfs/etc/systemd/system/gotify.service
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue