From 6a17df017b8c4e2c9ab1607ef6e359c736a32f16 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Tue, 22 Jul 2025 00:16:12 -0600 Subject: [PATCH] jra_nextcloud.sh: set php8.3 for nextcloud v31 --- jra_nextcloud.sh | 2 +- tools/prepare_php.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/jra_nextcloud.sh b/jra_nextcloud.sh index 3703a35..5d24361 100644 --- a/jra_nextcloud.sh +++ b/jra_nextcloud.sh @@ -42,7 +42,7 @@ apt-get update -q2 # Manually add prerequisites. apt-get install -y curl letsencrypt nginx -MIN_PHP="8.2" +MIN_PHP="8.3" DOMAIN="$(find /etc/prosody/conf.d/ -name \*.lua|awk -F'.cfg' '!/localhost/{print $1}'|xargs basename)" PSGVER="$(apt-cache madison postgresql|tr -d '[:blank:]'|awk -F'[|+]' 'NR==1{print $2}')" NC_NGINX_SSL_PORT="$(grep "listen 44" /etc/nginx/sites-available/"$DOMAIN".conf | awk '{print$2}')" diff --git a/tools/prepare_php.sh b/tools/prepare_php.sh index ba73638..3ac815d 100644 --- a/tools/prepare_php.sh +++ b/tools/prepare_php.sh @@ -128,6 +128,7 @@ echo "opcache.revalidate_freq=1" echo "opcache.validate_timestamps=1" } >> "$PHP_INI" +echo "# Stick to default system php version to avoid breaking any other system application" update-alternatives --set php /usr/bin/php"$STABLE_PHP" update-alternatives --set php-fpm.sock /run/php/php"$STABLE_PHP"-fpm.sock update-alternatives --set php-cgi /usr/bin/php-cgi"$STABLE_PHP"