Do not try to remove xCATSN unless it actually exists.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2543 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
nott 2008-12-11 18:22:23 +00:00
parent 932bd2d405
commit 7ad76fee1e

View File

@ -79,8 +79,10 @@ else
xCAT::MsgUtils->message('I', "Created /etc/xCATMN file.\n");
}
# Make sure service node file is not there
my $cmd = "/bin/rm /etc/xCATSN";
my $outref = xCAT::Utils->runcmd("$cmd", 0);
if (-f "/etc/xCATSN") {
my $cmd = "/bin/rm /etc/xCATSN";
my $outref = xCAT::Utils->runcmd("$cmd", 0);
}
# some Linux-only config
# (used to FTP postscripts to nodes)