From: Wilfried Göesgens Date: Tue, 23 Oct 2007 21:18:57 +0000 (+0000) Subject: * check if we can find the debian systems TZ setting. X-Git-Tag: v7.86~2925 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=0208ecb9741d8f0f38e8df93aa96fe910e60fe3d * check if we can find the debian systems TZ setting. --- diff --git a/webcit/debian/webcit.init b/webcit/debian/webcit.init index 4d73c83aa..ffceaa0d0 100644 --- a/webcit/debian/webcit.init +++ b/webcit/debian/webcit.init @@ -53,6 +53,12 @@ if test -f $DEFAULT; then . $DEFAULT fi +if test -z "$TZ"; then + if test -e /etc/timezone; then + TZ=`cat /etc/timezone` + export TZ + fi +fi # # Function that starts the daemon/service #