4 if [ -d /var/athena ] && [ -w /var/athena ]; then
5 exec >/var/athena/moira_update.log 2>&1
7 exec >/tmp/moira_update.log 2>&1
10 # The following exit codes are defined and MUST BE CONSISTENT with the
11 # error codes the library uses:
12 MR_MISSINGFILE=47836473
18 TARFILE=/var/tmp/zephyr.out
20 # Alert if the tar file does not exist
21 test -r $TARFILE || exit $MR_MISSINGFILE
23 # Make a temporary directory to unpack the tar file into
24 mkdir /etc/athena/zephyr/acl.new
25 cd /etc/athena/zephyr/acl.new || exit $MR_MKCRED
26 tar xf $TARFILE || exit $MR_TARERR
28 # Copy over each file which is new or has changed
30 if [ -f ../acl/$file ]; then
31 cmp -s $file ../acl/$file
42 # HUP zephyrd if needed
45 pid=`ps -ef | awk '/[^\]]zephyrd/ { print $2; }'`
52 rm -rf /etc/athena/zephyr/acl.new
53 test -f $TARFILE && rm -f $TARFILE
54 test -f $0 && rm -f $0