Commit f7c7d5b9 authored by Joshua Tauberer's avatar Joshua Tauberer

Merge pull request #146 from ls42/zpush/auto-timezone

Read timezone from /etc/timezone.
parents 4b75148f 2cab02c8
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment