]> andersk Git - moira.git/blobdiff - gen/zephyr.sh
Add an alternate possible location of postacldcm (in /usr/local/sbin)
[moira.git] / gen / zephyr.sh
index b0b4462ba5ef3ed268d9dc25d6b26bf31165827b..778a19c9c0e052576674819ece3ef12c1fb0a02b 100644 (file)
@@ -1,6 +1,12 @@
 #!/bin/sh
 # $Id$
 
+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_MISSINGFILE=47836473
@@ -22,7 +28,8 @@ tar xf $TARFILE || exit $MR_TARERR
 # Copy over each file which is new or has changed
 for file in *; do
     if [ -f ../acl/$file ]; then
-       if cmp -s $file ../acl/$file; then
+       cmp -s $file ../acl/$file       
+       if [ $? != 0 ]; then
            mv $file ../acl/$file
            hup=yes
        fi
This page took 0.057102 seconds and 4 git commands to generate.