icingaweb2: Update test to set PHP timezone

This commit is contained in:
Markus Frosch 2017-04-21 13:37:30 +02:00
parent e1560e35c3
commit 2d1c917e92
1 changed files with 12 additions and 0 deletions

View File

@ -3,6 +3,18 @@
install_package icingaweb2
# set timezone for PHP
if [ -d /etc/php.d ]; then
php_d=/etc/php.d
elif [ -d /etc/php5/conf.d ]; then
php_d=/etc/php5/conf.d
else
echo "Can not set PHP timezone!" >&2
exit 1
fi
echo "date.timezone = UTC" >${php_d}/timezone.ini
# Start apache in background
if [ -x /usr/sbin/httpd ]; then
sudo httpd -t
sudo httpd -k start