parent
ef983cadf9
commit
f6b3822e95
22
README.MD
22
README.MD
|
@ -19,6 +19,7 @@ debmaker_run
|
|||
- [grocy](#grocy)
|
||||
- [joplin-server](#joplin-server)
|
||||
- [rss-bridge](#rss-bridge)
|
||||
- [tt-rss](#tt-rss)
|
||||
- [vaultwarden and vaultwarden-web](#vaultwarden-and-vaultwarden-web)
|
||||
- [wallabag](#wallabag)
|
||||
- [zigbee2mqtt](#zigbee2mqtt)
|
||||
|
@ -70,7 +71,6 @@ a2enconf php8.1-fpm
|
|||
cp /usr/share/doc/grocy/apache2-grocy.conf /etc/apache2/sites-available/grocy.conf
|
||||
a2ensite grocy
|
||||
systemctl restart apache2
|
||||
|
||||
```
|
||||
|
||||
#### joplin-server
|
||||
|
@ -104,6 +104,26 @@ a2ensite rss-bridge
|
|||
systemctl restart apache2
|
||||
```
|
||||
|
||||
#### tt-rss
|
||||
```bash
|
||||
apt install -y wget ca-certificates
|
||||
wget -qO - https://deb.lgy.fr/install.sh | bash
|
||||
apt-get update
|
||||
apt-get install -y tt-rss
|
||||
|
||||
#Edit /etc/tt-rss/config.php
|
||||
systemctl enable --now tt-rss
|
||||
|
||||
# sample configuration for apache2 + php fpm
|
||||
apt install apache2 php-fpm
|
||||
a2enmod proxy_fcgi setenvif
|
||||
a2enconf php7.4-fpm
|
||||
cp /usr/share/doc/grocy/apache2-tt-rss.conf /etc/apache2/sites-available/tt-rss.conf
|
||||
#edit /etc/apache2/sites-available/tt-rss.conf
|
||||
a2ensite tt-rss
|
||||
systemctl restart apache2
|
||||
```
|
||||
|
||||
#### vaultwarden and vaultwarden-web
|
||||
|
||||
```bash
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
APP=joplin
|
||||
VERSION=2.7.12
|
||||
VERSION=2.7.13
|
||||
GIT_VERSION=$VERSION
|
||||
DEB_VERSION=$VERSION-1
|
||||
DEBIAN_VERSION_CODENAME=bullseye
|
||||
|
|
|
@ -4,12 +4,15 @@ DEBOOTSTRAP_DIR=cache/debootstrap/
|
|||
MOUNT_PATH=/mnt/debmaker
|
||||
|
||||
zdebmaker_getDep(){
|
||||
[ -d cache ] || mkdir cache
|
||||
[ -d dist ] || mkdir dist
|
||||
[ -d ${DEBOOTSTRAP_DIR} ] || debmaker_debootstrapUpdate
|
||||
}
|
||||
|
||||
zdebmaker_createOS(){
|
||||
dd if=/dev/zero of=cache/${DEBIAN_VERSION_CODENAME}.tmp bs=100M count=5
|
||||
sudo mkfs.ext4 cache/${DEBIAN_VERSION_CODENAME}.tmp
|
||||
[ -d ${MOUNT_PATH}/${DEBIAN_VERSION_CODENAME}/ ] || sudo mkdir -p ${MOUNT_PATH}/${DEBIAN_VERSION_CODENAME}/
|
||||
sudo mount cache/${DEBIAN_VERSION_CODENAME}.tmp ${MOUNT_PATH}/${DEBIAN_VERSION_CODENAME}
|
||||
sudo DEBOOTSTRAP_DIR=cache/debootstrap/ ${DEBOOTSTRAP_DIR}/debootstrap ${DEBIAN_VERSION_CODENAME} ${MOUNT_PATH}/${DEBIAN_VERSION_CODENAME}/
|
||||
sudo umount ${MOUNT_PATH}/${DEBIAN_VERSION_CODENAME}
|
||||
|
@ -23,6 +26,8 @@ zdebmaker_createAppOS(){
|
|||
dd if=/dev/zero of=cache/${APP}.tmp bs=1G count=${IMAGE_SIZE}
|
||||
sudo mkfs.ext4 cache/${APP}.tmp
|
||||
|
||||
[ -d ${MOUNT_PATH}/${APP}/ ] || sudo mkdir -p ${MOUNT_PATH}/${APP}/
|
||||
[ -d ${MOUNT_PATH}/${DEBIAN_VERSION_CODENAME}/ ] || sudo mkdir -p ${MOUNT_PATH}/${DEBIAN_VERSION_CODENAME}/
|
||||
sudo mount cache/${APP}.tmp ${MOUNT_PATH}/${APP}/
|
||||
sudo mount cache/${DEBIAN_VERSION_CODENAME} ${MOUNT_PATH}/${DEBIAN_VERSION_CODENAME}
|
||||
sudo rsync -h -X -A --numeric-ids -aH --no-whole-file --inplace --one-file-system ${MOUNT_PATH}/${DEBIAN_VERSION_CODENAME}/* ${MOUNT_PATH}/${APP}/
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
/etc/tt-rss/config.php
|
|
@ -0,0 +1,8 @@
|
|||
Package: tt-rss
|
||||
Version: %VERSION%
|
||||
Section: base
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Depends: php-pgsql, php-mysql, php-intl, php-mbstring, php-xml
|
||||
Maintainer: Thomas Legay <thomas@lgy.fr>
|
||||
Description: tt-rss
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
chown -R www-data:www-data /var/lib/tt-rss/
|
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=ttrss_backend
|
||||
|
||||
After=network.target
|
||||
|
||||
|
||||
[Service]
|
||||
User=www-data
|
||||
ExecStart=/usr/share/tt-rss/update_daemon2.php
|
||||
Restart=on-failure
|
||||
RestartSec=60
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,12 @@
|
|||
<VirtualHost *:80>
|
||||
servername tt-rss.domain.com
|
||||
|
||||
DocumentRoot /usr/share/tt-rss/
|
||||
Protocols h2c http/1.1
|
||||
|
||||
<directory /usr/share/tt-rss/>
|
||||
Options -Indexes -MultiViews +FollowSymLinks
|
||||
AllowOverride all
|
||||
Require all granted
|
||||
</directory>
|
||||
</VirtualHost>
|
|
@ -0,0 +1,37 @@
|
|||
#!/bin/bash
|
||||
|
||||
STEP="envinit prebuild makedeb"
|
||||
# build
|
||||
|
||||
envinit() {
|
||||
apt-get install -y --no-install-recommends wget ca-certificates fakeroot dpkg git
|
||||
}
|
||||
|
||||
prebuild(){
|
||||
rm -fr /tmp/tt-rss
|
||||
git clone --depth 1 https://git.tt-rss.org/fox/tt-rss.git /tmp/tt-rss
|
||||
}
|
||||
|
||||
build() {
|
||||
cd /tmp/tt-rss
|
||||
}
|
||||
|
||||
makedeb(){
|
||||
GIT_VERSION=$1
|
||||
DEB_VERSION=$2
|
||||
PATH_DEB=/tmp/src/rootfs
|
||||
|
||||
cp -fr /tmp/tt-rss/* ${PATH_DEB}/usr/share/tt-rss/
|
||||
mv ${PATH_DEB}/usr/share/tt-rss/cache ${PATH_DEB}/var/lib/tt-rss/
|
||||
mv ${PATH_DEB}/usr/share/tt-rss/feed-icons ${PATH_DEB}/var/lib/tt-rss/
|
||||
mv ${PATH_DEB}/usr/share/tt-rss/lock ${PATH_DEB}/var/lib/tt-rss/
|
||||
mv ${PATH_DEB}/usr/share/tt-rss/config.php-dist ${PATH_DEB}/etc/tt-rss/config.php
|
||||
|
||||
ln -s /var/lib/tt-rss/cache ${PATH_DEB}/usr/share/tt-rss/cache
|
||||
ln -s /var/lib/tt-rss/feed-icons ${PATH_DEB}/usr/share/tt-rss/feed-icons
|
||||
ln -s /var/lib/tt-rss/lock ${PATH_DEB}/usr/share/tt-rss/lock
|
||||
|
||||
ln -s /etc/tt-rss/config.php ${PATH_DEB}/usr/share/tt-rss/config.php
|
||||
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
|
||||
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
APP=tt-rss
|
||||
VERSION=$(date +%Y%m.%d.%H%M)
|
||||
GIT_VERSION=$VERSION
|
||||
DEB_VERSION=$VERSION
|
||||
DEBIAN_VERSION_CODENAME=bullseye
|
||||
IMAGE_SIZE=1
|
||||
|
||||
source ./lib/function.sh
|
Loading…
Reference in New Issue