Skip to content

Commit

Permalink
Updated to PHP 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianPrieber committed Jun 23, 2023
1 parent 8b5d5c0 commit c9666b8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 -- | #
Expand Down

0 comments on commit c9666b8

Please sign in to comment.