# This script performs updates of hesiod files on hesiod servers.
# $Header$
-exec >/tmp/moira_update.log 2>&1
+if [ -d /var/athena ] && [ -w /var/athena ]; then
+ exec >/var/athena/moira_update.log 2>&1
+else
+ exec >/tmp/moira_update.log 2>&1
+fi
+
set -x
PATH=/etc:/bin:/usr/bin:/usr/etc:/usr/athena/etc