Added CT: freshrss

This commit is contained in:
2023-07-13 00:57:07 +02:00
parent 7d06b09691
commit de5c254ae9
9 changed files with 173 additions and 3 deletions

View File

@@ -0,0 +1,24 @@
#!/bin/ash
#Configure Nginx
rm -rf /etc/nginx/conf.d
mv /opt/Setup/Configs/nginx.conf /etc/nginx/nginx.conf
#Configure Php-Fpm
rm -rf /etc/php82/php-fpm.d/*
mv /opt/Setup/Configs/php.conf /etc/php82/php-fpm.d/freshrss.conf
mv /opt/Setup/Configs/phpTimezone.ini /etc/php82/conf.d/04_date_timezone.ini
#Configure Cron
mv /opt/Setup/Configs/crontab /etc/crontabs/nginx
#Install freshrss
mkdir -p /opt/freshrss
wget https://github.com/FreshRSS/FreshRSS/tarball/latest -O /tmp/freshrss.tar.gz
tar -C /opt/freshrss -xzf /tmp/freshrss.tar.gz --strip 1
chown -R nginx:nginx /opt/freshrss
rm /tmp/freshrss.tar.gz
#Enable services on boot
rc-update add nginx
rc-update add php-fpm82