Files
HomeServerCTs/CT-Files/nextcloud/Scripts/Init.sh
Bram Prieshof a41c5bef3c CT's Nextcloud, Freshrss.heimdall & mailbackup: Refractored PHP Installation
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
2024-07-21 15:21:16 +02:00

23 lines
757 B
Bash

#!/bin/ash
#Get Resources
curl -L --retry 7 --retry-delay 5 https://download.nextcloud.com/server/releases/latest.tar.bz2 -o /opt/Setup/nextcloud.tar.bz2 || exit 1
#Configure Nginx
rm -rf /etc/nginx/conf.d
mv /opt/Setup/Configs/nginx.conf /etc/nginx/nginx.conf
#Setup PHP
ash /opt/Setup/Scripts/PHPTool.sh -d nextcloud || exit 1
rm /opt/Setup/Scripts/PHPTool.sh
#Install Nextcloud
mkdir /opt/nextcloud /var/nextcloud
tar jxf /opt/Setup/nextcloud.tar.bz2 -C /opt/nextcloud --strip 1
rm -rf /opt/Setup/nextcloud.tar.bz2
chown -R nginx:nginx /opt/nextcloud
chown -R nginx:nginx /var/nextcloud
echo "*/5 * * * * php83 -f /opt/nextcloud/cron.php > /dev/null 2>&1" >> /etc/crontabs/nginx
#Enable services on boot
rc-update add nginx
rc-update add valkey