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:
parent
932bd2d405
commit
7ad76fee1e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user