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
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
id joplin-server &> /dev/null || useradd joplin-server -r -s /bin/false -md /var/lib/joplin-server
|
||||
## issue https://github.com/laurent22/joplin/issues/5980
|
||||
mkdir /usr/lib/joplin-server/server/temp/
|
||||
mkdir /usr/lib/joplin-server/server/logs/
|
||||
[ ! -e /usr/lib/joplin-server/server/temp/ ] && mkdir /usr/lib/joplin-server/server/temp/
|
||||
[ ! -e /usr/lib/joplin-server/server/logs/ ] && mkdir /usr/lib/joplin-server/server/logs/
|
||||
chown joplin-server:joplin-server /usr/lib/joplin-server/server/temp/
|
||||
chown joplin-server:joplin-server /usr/lib/joplin-server/server/logs/
|
||||
|
|
4
ressources/zigbee2mqtt/build
Executable file
4
ressources/zigbee2mqtt/build
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
cd /tmp/zigbee2mqtt/
|
||||
npm ci
|
||||
npm run build
|
3
ressources/zigbee2mqtt/envinit
Executable file
3
ressources/zigbee2mqtt/envinit
Executable file
|
@ -0,0 +1,3 @@
|
|||
#/bin/bash
|
||||
apt install -y wget ca-certificates nodejs npm git make g++ gcc
|
||||
|
8
ressources/zigbee2mqtt/makedeb
Normal file
8
ressources/zigbee2mqtt/makedeb
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
PATH_BUILD=$1
|
||||
PATH_DEB=$2
|
||||
GIT_VERSION=$3
|
||||
|
||||
cp -fr ${PATH_BUILD}/tmp/zigbee2mqtt/data/configuration.yaml ${PATH_DEB}/etc/zigbee2mqtt/configuration.yaml
|
||||
cp -fr ${PATH_BUILD}/tmp/zigbee2mqtt/* ${PATH_DEB}/usr/lib/zigbee2mqtt/
|
||||
|
6
ressources/zigbee2mqtt/prebuild
Executable file
6
ressources/zigbee2mqtt/prebuild
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
VERSION=$1
|
||||
cd /tmp/
|
||||
git clone https://github.com/Koenkk/zigbee2mqtt.git
|
||||
cd zigbee2mqtt/
|
||||
git checkout $VERSION
|
0
ressources/zigbee2mqtt/rootfs/DEBIAN/changelog
Normal file
0
ressources/zigbee2mqtt/rootfs/DEBIAN/changelog
Normal file
1
ressources/zigbee2mqtt/rootfs/DEBIAN/conffiles
Normal file
1
ressources/zigbee2mqtt/rootfs/DEBIAN/conffiles
Normal file
|
@ -0,0 +1 @@
|
|||
/etc/zigbee2mqtt/configuration.yaml
|
8
ressources/zigbee2mqtt/rootfs/DEBIAN/control
Normal file
8
ressources/zigbee2mqtt/rootfs/DEBIAN/control
Normal file
|
@ -0,0 +1,8 @@
|
|||
Package: zigbee2mqtt
|
||||
Version: %VERSION%
|
||||
Section: base
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Depends: nodejs, npm
|
||||
Maintainer: Thomas Legay <thomas@syngate.fr>
|
||||
Description: zigbee2mqtt
|
4
ressources/zigbee2mqtt/rootfs/DEBIAN/postinst
Executable file
4
ressources/zigbee2mqtt/rootfs/DEBIAN/postinst
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
id zigbee2mqtt &> /dev/null || useradd zigbee2mqtt -r -s /bin/false -md /var/lib/zigbee2mqtt
|
||||
chown zigbee2mqtt:zigbee2mqtt /var/lib/zigbee2mqtt/
|
2
ressources/zigbee2mqtt/rootfs/etc/default/zigbee2mqtt
Normal file
2
ressources/zigbee2mqtt/rootfs/etc/default/zigbee2mqtt
Normal file
|
@ -0,0 +1,2 @@
|
|||
ZIGBEE2MQTT_CONFIG=/etc/zigbee2mqtt/configuration.yaml
|
||||
ZIGBEE2MQTT_DATA=/var/lib/zigbee2mqtt
|
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description=zigbee2mqtt
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=/etc/default/zigbee2mqtt
|
||||
ExecStart=/usr/bin/npm start
|
||||
WorkingDirectory=/usr/lib/zigbee2mqtt
|
||||
StandardOutput=inherit
|
||||
StandardError=inherit
|
||||
Restart=always
|
||||
User=zigbee2mqtt
|
||||
Group=zigbee2mqtt
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue