X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/blobdiff_plain/f4f321854fa126fdea7d16411749e07c283303c1..34a2520c8cd16d1d0446959b62e28d2fe3cbd1c9:/gen/nfs.sh diff --git a/gen/nfs.sh b/gen/nfs.sh index 1924ea9a..67514adb 100644 --- a/gen/nfs.sh +++ b/gen/nfs.sh @@ -6,13 +6,16 @@ # 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