mirror of
https://github.com/jgeusebroek/docker-spotweb.git
synced 2025-06-03 06:07:23 +02:00
Fix timezone with PHP8
This commit is contained in:
parent
ff9f0a19a3
commit
7ee8397fcf
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user