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_NOCRED=47836470
chmod 700 ${SRC_DIR}
uchost=`hostname | tr '[a-z]' '[A-Z]'`
-echo $uchost | egrep -e "." > /dev/null
+echo $uchost | egrep -e "\." > /dev/null
if [ $? != 0 ]; then
domain=`grep domain /etc/resolv.conf | awk '{print $2}' |tr '[a-z]' '[A-Z]'`
#
LD_LIBRARY_PATH=/usr/local/tcl/lib
export LD_LIBRARY_PATH
-${IMAP_BIN}/cyradm -file /usr/local/bin/sync.cyradm sync -d
+
+${IMAP_BIN}/cyradm -file ${IMAP_BIN}/sync.cyradm sync -d
if [ $? != 0 ]; then
exit ${MR_MKCRED}
fi