cp ${uchost}.cred /usr/etc/credentials.new
if ($status) exit $MR_NOCRED
+# After this point, if /tmp gets cleared out by reactivate (which
+# happens on a combined server/workstation) we don't care.
+
mkcred /usr/etc/credentials.new
if ($status) exit $MR_MKCRED
# cleanup
-rm -f $TARFILE
-cd $SRC_DIR/..
-rm -rf $SRC_DIR
-rm $0
+ if [ -f $TARFILE ] ; then rm -f $TARFILE ; fi
+ if [ -d $SRC_DIR ] ; then cd $SRC_DIR/.. ; rm -rf $SRC_DIR ; fi
+ if [ -f $0 ] ; then rm -r $0 ; fi
+fi
exit 0