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"