From 2cab02c8311d34fe845306147e9e5282e24d29b7 Mon Sep 17 00:00:00 2001 From: Stephan Brauer Date: Wed, 20 Aug 2014 23:51:10 +0200 Subject: [PATCH] Read timezone from /etc/timezone. --- setup/zpush.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/zpush.sh b/setup/zpush.sh index a220b138..72ba0742 100755 --- a/setup/zpush.sh +++ b/setup/zpush.sh @@ -41,7 +41,7 @@ if [ $needs_update == 1 ]; then fi # Configure default config. -sed -i "s/define('TIMEZONE', .*/define('TIMEZONE', 'Etc\/UTC');/" /usr/local/lib/z-push/config.php +sed -i "s^define('TIMEZONE', .*^define('TIMEZONE', '$(cat /etc/timezone)');^" /usr/local/lib/z-push/config.php sed -i "s/define('BACKEND_PROVIDER', .*/define('BACKEND_PROVIDER', 'BackendCombined');/" /usr/local/lib/z-push/config.php # Configure BACKEND