Updated to PHP 8.2

This commit is contained in:
Julian Prieber 2023-06-24 00:06:44 +02:00
parent 8b5d5c0d7d
commit c9666b87e8

View file

@ -88,18 +88,18 @@ if [[ ${DEBUG} == "TRUE" && -d /debug ]]; then cp /etc/apache2/conf.d/ssl.conf /
# | -- PHP.INI -- | #
# + ------------- + #
echo '| Updating Configuration: PHP (/etc/php81/php.ini) |'
echo '| Updating Configuration: PHP (/etc/php82/php.ini) |'
if [[ ${DEBUG} == "TRUE" && -d /debug ]]; then cp /etc/php81/php.ini /debug/php.BEFORE.ini;fi
if [[ ${DEBUG} == "TRUE" && -d /debug ]]; then cp /etc/php82/php.ini /debug/php.BEFORE.ini;fi
# ALTER: Modify php memory limit and timezone
sed -i "s/memory_limit = .*/memory_limit = ${PHP_MEMORY_LIMIT}/" /etc/php81/php.ini
sed -i "s/upload_max_filesize = .*/upload_max_filesize = ${UPLOAD_MAX_FILESIZE}/" /etc/php81/php.ini
sed -i "s#^;date.timezone =\$#date.timezone = \"${TZ}\"#" /etc/php81/php.ini
sed -i "s/memory_limit = .*/memory_limit = ${PHP_MEMORY_LIMIT}/" /etc/php82/php.ini
sed -i "s/upload_max_filesize = .*/upload_max_filesize = ${UPLOAD_MAX_FILESIZE}/" /etc/php82/php.ini
sed -i "s#^;date.timezone =\$#date.timezone = \"${TZ}\"#" /etc/php82/php.ini
echo "is_llc_docker = true" >> /etc/php81/php.ini
echo "is_llc_docker = true" >> /etc/php82/php.ini
if [[ ${DEBUG} == "TRUE" && -d /debug ]]; then cp /etc/php81/php.ini /debug/php.AFTER.ini;fi
if [[ ${DEBUG} == "TRUE" && -d /debug ]]; then cp /etc/php82/php.ini /debug/php.AFTER.ini;fi
# + ---------- + #
# | -- MISC -- | #