24 lines
680 B
Bash
24 lines
680 B
Bash
#!/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/php83/php-fpm.d/*
|
|
mv /opt/Setup/Configs/php.conf /etc/php83/php-fpm.d/freshrss.conf
|
|
mv /opt/Setup/Configs/phpTimezone.ini /etc/php83/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-fpm83 |