]> andersk Git - moira.git/blobdiff - gen/hesiod.sh
Only active hosts, please.
[moira.git] / gen / hesiod.sh
index d984c21eeedbe4b9bd6f63861338f41393250b4e..e36ac5717191dede252b3d6eefccaa84742609dc 100644 (file)
@@ -2,7 +2,12 @@
 # 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
@@ -18,7 +23,7 @@ MR_TARERR=47836476
 umask 022
 
 # File that will contain the necessary information to be updated
-TARFILE=/var/tmp/nhesiod.out
+TARFILE=/var/tmp/hesiod.out
 # Directory into which we will empty the tarfile
 SRC_DIR=/etc/athena/_nameserver
 # Directory into which we will put the final product
This page took 0.043557 seconds and 4 git commands to generate.