aboutsummaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-12-04 09:40:14 -0800
committerAaron Griffin <aaronmgriffin@gmail.com>2008-12-04 09:40:14 -0800
commitaf3ac0dc954d96855555aa8cb12633494d465a77 (patch)
tree84b53e7a133878bf641c66012db36b9de9c593da /functions
parent9ac428a113d5dee2b4d5469fdfdb383eda90d4c6 (diff)
downloadinitscripts-af3ac0dc954d96855555aa8cb12633494d465a77.tar.xz
unset the TZ envvar in 'functions'
This prevents a local TZ variable from breaking daemon's when started by root. Daemon's should always respect the system's /etc/localtime Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'functions')
-rw-r--r--functions3
1 files changed, 3 insertions, 0 deletions
diff --git a/functions b/functions
index 70c75b1..cab4141 100644
--- a/functions
+++ b/functions
@@ -36,6 +36,9 @@ else
fi
unset TERM_COLORS
+# clear the TZ envvar, so daemons always respect /etc/localtime
+unset TZ
+
# colors:
if [ "$USECOLOR" = "YES" -o "$USECOLOR" = "yes" ]; then
C_MAIN="\033[1;37;40m" # main text