From 7ee8397fcf7d718981d1059fde17ddf7f221cc28 Mon Sep 17 00:00:00 2001 From: Jeroen Geusebroek Date: Sat, 20 Nov 2021 12:25:43 +0100 Subject: [PATCH] Fix timezone with PHP8 --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 2a652fb..01a25bb 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -34,7 +34,7 @@ fi TZ=${TZ:-"Europe/Amsterdam"} echo -e "Setting (PHP) time zone to ${TZ}\n" -sed -i "s#^;date.timezone =.*#date.timezone = ${TZ}#g" /etc/php/7.*/*/php.ini +sed -i "s#^;date.timezone =.*#date.timezone = ${TZ}#g" /etc/php/8.*/*/php.ini if [[ -n "$SPOTWEB_CRON_RETRIEVE" || -n "$SPOTWEB_CRON_CACHE_CHECK" ]]; then ln -sf /proc/$$/fd/1 /var/log/stdout @@ -60,7 +60,7 @@ unset rt /usr/sbin/a2enmod expires && rt=1 /usr/sbin/a2enmod deflate && rt=1 -# Only restart if one of the enmod commands succeeded +# Only restart if one of the enmod commands succeeded if [[ -n $rt ]]; then /etc/init.d/apache2 restart fi