]> andersk Git - moira.git/blobdiff - gen/postoffice.sh
Enable qsort() on all platforms, not jusr WIN32.
[moira.git] / gen / postoffice.sh
index b48b40f24a8b901e70eb0f3e6eee29ca4d4f67e0..eb8bc2ea0b67372bcfd996e8fa9bdd4ae8fe7b54 100644 (file)
@@ -6,6 +6,12 @@
 PATH=/sbin:/bin:/usr/sbin:/usr/bin:/etc:/usr/etc:/usr/athena/bin:/usr/local/bin
 export PATH
 
+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
+
 # The following exit codes are defined and MUST BE CONSISTENT with the
 # error codes the library uses:
 MR_NOCRED=47836470
@@ -39,7 +45,7 @@ mkdir ${SRC_DIR}
 chmod 700 ${SRC_DIR}
 
 uchost=`hostname | tr '[a-z]' '[A-Z]'`
-echo $uchost | egrep -e "." > /dev/null
+echo $uchost | egrep -e "\." > /dev/null
 if [ $? != 0 ]; then
        domain=`grep domain /etc/resolv.conf | awk '{print $2}' |tr '[a-z]' '[A-Z]'`
 
This page took 2.205314 seconds and 4 git commands to generate.