4 DIR=/warehouse/transfers/moirausr
5 TAR_FILE=$DIR/moira.tar.Z
7 PATH="/etc:/bin:/usr/bin:/usr/etc:/usr/athena/etc"
9 if [ -d /var/athena ] && [ -w /var/athena ]; then
10 exec >/var/athena/moira_update.log 2>&1
12 exec >/tmp/moira_update.log 2>&1
15 # The following exit codes are defined and MUST BE CONSISTENT with the
16 # error codes the library uses:
17 set MR_MISSINGFILE = 47836473
18 set MR_TARERR = 47836476
22 echo extracting $TAR_FILE
24 if [ ! -f $TAR_FILE ]; then
28 if zcat < $TAR_FILE | tar xvf -; then
29 echo Extract successful
34 chmod 640 username_id.*