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
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