Now using external `AlpinePHPTool` script for installing/configuring php. This wil make upgrading PHP on existing containers automaticaly plausible/easier. Removed php packages from alpine.yaml and moved them to CT-Files `Config/php.pkglist` Remove PHP configurations steps from CT's init.sh and integrated them in ` AlpinePHPTool` Removed PHP timezone configuration files and intergradeded them in `AlpinePHPTool` Updated
33 lines
1.1 KiB
Bash
33 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
|
|
|
|
#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
|
|
|
|
#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 |