* check if we can find the debian systems TZ setting.
authorWilfried Göesgens <willi@citadel.org>
Tue, 23 Oct 2007 21:18:57 +0000 (21:18 +0000)
committerWilfried Göesgens <willi@citadel.org>
Tue, 23 Oct 2007 21:18:57 +0000 (21:18 +0000)
webcit/debian/webcit.init

index 4d73c83aa7ecb769c8cc575ba62a694fe52c5696..ffceaa0d02d614da59fbbfe8294b78a9f8bf806d 100644 (file)
@@ -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
 #