# redirect output, and find the credentials directory (not robust, but
# works for now).
if [ -d /var/athena ] && [ -w /var/athena ]; then
- creddir=/var/athena
exec >/var/athena/moira_update.log 2>&1
else
- creddir=/usr/etc
exec >/tmp/moira_update.log 2>&1
fi
+creddir=/var/athena
+if [ -d /usr/etc ]; then
+ creddir=/usr/etc
+fi
+
# The following exit codes are defined and MUST BE CONSISTENT with the
# error codes the library uses:
MR_NOCRED=47836470