From 7ad76fee1e716891004315dc9d754263223f3e10 Mon Sep 17 00:00:00 2001 From: nott Date: Thu, 11 Dec 2008 18:22:23 +0000 Subject: [PATCH] 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 --- xCAT-server/sbin/xcatconfig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xCAT-server/sbin/xcatconfig b/xCAT-server/sbin/xcatconfig index 7c5f34958..ccf0ceca0 100644 --- a/xCAT-server/sbin/xcatconfig +++ b/xCAT-server/sbin/xcatconfig @@ -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)