[1549] in Moira

home help back first fref pref prev next nref lref last post

nfs.sh fix

daemon@ATHENA.MIT.EDU (Garry Zacheiss)
Thu May 25 01:43:03 2000

Message-Id: <200005250543.BAA26405@sweet-transvestite.mit.edu>
To: moiradev@MIT.EDU
Date: Thu, 25 May 2000 01:43:00 -0400
From: Garry Zacheiss <zacheiss@MIT.EDU>

	I didn't get the logic of nfs.sh quite right.  I'm checking this
in now.

Index: nfs.sh
===================================================================
RCS file: /afs/athena.mit.edu/astaff/project/moiradev/repository/moira/gen/nfs.sh,v
retrieving revision 1.24
diff -c -r1.24 nfs.sh
*** nfs.sh	2000/05/08 18:30:30	1.24
--- nfs.sh	2000/05/25 05:29:29
***************
*** 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
  
  # The following exit codes are defined and MUST BE CONSISTENT with the 
--- 6,19 ----
  # redirect output, and find the credentials directory (not robust, but
  # works for now).
  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
+ 
+ creddir=/var/athena
+ if [ -d /usr/etc ]; then
+     creddir=/usr/etc
  fi
  
  # The following exit codes are defined and MUST BE CONSISTENT with the 

home help back first fref pref prev next nref lref last post