Files
Bram Prieshof 1d661b3287 Fixes for AlpinePHPTool:
*Added crontab configuration to the script for FreshRSS and Nextcloud CT's
*Added ProxmoxUpdateScript configuration to the script for Nextcloud CT
2025-01-16 23:54:55 +01:00

30 lines
1.1 KiB
Bash

#!/bin/ash
#Configure Nginx
rm -rf /etc/nginx/conf.d
mv /opt/Setup/Configs/nginx.conf /etc/nginx/nginx.conf
#SetupPHP
ash /opt/Setup/Scripts/PHPTool.sh -d freshrss || exit 1
rm /opt/Setup/Scripts/PHPTool.sh
#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
#Install freshrss Extensions
mkdir -p /opt/freshrss-Extensions
##Download Extensions
git clone https://github.com/FreshRSS/Extensions.git /opt/freshrss-Extensions/Official
git clone https://github.com/cn-tools/cntools_FreshRssExtensions.git /opt/freshrss-Extensions/cntools
##Make needed Extensions available
ln -s /opt/freshrss-Extensions/Official/xExtension-YouTube /opt/freshrss/extensions/xExtension-YouTube
ln -s /opt/freshrss-Extensions/cntools/xExtension-YouTubeChannel2RssFeed /opt/freshrss/extensions/xExtension-YouTubeChannel2RssFeed
chown -R nginx:nginx /opt/freshrss-Extensions
#Enable services on boot
rc-update add nginx