]> andersk Git - moira.git/blobdiff - gen/www.sh
mail.mit.edu domain.
[moira.git] / gen / www.sh
index ed4bcfefcf59e5edda5e143bf5de8e5c0146b040..c12e44f627c995f82e9f0c90db750c08d03807ce 100644 (file)
@@ -5,12 +5,19 @@
 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_HESFILE=47836472
 MR_MISSINGFILE=47836473
 MR_NAMED=47836475
 MR_TARERR=47836476
+MR_MKCRED=47836474
 
 umask 22
 
@@ -51,7 +58,7 @@ for file in `tar tf $TARFILE | awk '{print $1}' | sed 's;/$;;'` ; do
                fi
                $BIN_DIR/dbmanage $file import $file.db 
                if [ $? != 0 ]; then
-                       exit $MR_TARERR
+                       exit $MR_MKCRED
                fi
                mv $DEST_DIR/$file $SRC_DIR/save/$file
                mv $DEST_DIR/$file.db $SRC_DIR/save/$file.db
This page took 0.03624 seconds and 4 git commands to generate.