mirror of
https://github.com/jgeusebroek/docker-spotweb.git
synced 2025-06-06 23:57:26 +02:00
Fix PHP timezone for PHP7
This commit is contained in:
parent
98196e7ea8
commit
4a11932041
@ -31,7 +31,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/php5/*/php.ini
|
||||
sed -i "s#^;date.timezone =.*#date.timezone = ${TZ}#g" /etc/php/7.*/*/php.ini
|
||||
|
||||
# Enabling PHP mod rewrite
|
||||
/usr/sbin/a2enmod rewrite && /etc/init.d/apache2 restart
|
||||
|
Loading…
x
Reference in New Issue
Block a user