From 0a94bc00b1d6a97d8b14a542febdaa2629d98607 Mon Sep 17 00:00:00 2001 From: nott Date: Sat, 17 Oct 2009 13:07:48 +0000 Subject: [PATCH] Restore .rhosts file removed by NIM setup. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4402 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/servicenode | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT/postscripts/servicenode b/xCAT/postscripts/servicenode index c418975da..6e22718e8 100755 --- a/xCAT/postscripts/servicenode +++ b/xCAT/postscripts/servicenode @@ -238,6 +238,12 @@ sub setupAIXsn # !!!!! can't do diskless nodes w/ nimsh & SSL enabled!!!! # + # restore the original .rhosts that was removed by NIM setup + if (&runcmd("cp /.rhosts.prev /.rhosts ") != 0 ) { + $msg = "$::sdate servicenode: Could not restore the .rhosts file.\n"; + `logger -t xcat $msg`; + } + return 0; }