]> andersk Git - moira.git/blobdiff - gen/ndb.sh
Don't tell nagios about deleted printers
[moira.git] / gen / ndb.sh
index 0725f22ead8a9032e845372b77894afb2b2f1e80..64db9421a69ea7d90f88c395922c6aa4a8c4baf4 100755 (executable)
@@ -1,4 +1,10 @@
 #!/bin/sh
+
+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
  
 root=/usr/local/nic/db
 PATH=/sbin:/bin:root/bin
This page took 0.03032 seconds and 4 git commands to generate.