From f8e0d8baeac6f9ec8c468b0b53d12a6e54a2b5ce Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 15 Apr 2008 18:33:55 +0000 Subject: [PATCH] add touch of xCATSN git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1067 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/sbin/copycerts | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/xCAT-server-2.0/sbin/copycerts b/xCAT-server-2.0/sbin/copycerts index 6be0b1d47..e94cc3856 100644 --- a/xCAT-server-2.0/sbin/copycerts +++ b/xCAT-server-2.0/sbin/copycerts @@ -31,14 +31,7 @@ my $bname = basename($0); #----------------------------------------------------------------------------- -# if this is a service node -# -# Copy Certificates, and config file to appropriate directories from mounted -# -if (xCAT::Utils->isServiceNode()) -{ - ©CertstoSN; -} +©CertstoSN; exit 0; @@ -58,6 +51,8 @@ exit 0; sub copyCertstoSN { my $rc = 0; + `touch /etc/xCATSN`; + `unalias cp`; if (-d "/xcatpost/.xcat") { if (!(-d "/root/.xcat")) @@ -136,9 +131,9 @@ sub copyCertstoSN "/xcatpost/etc/sysconfig directory does not exit\n"); } - # TODO fix for SuSE and AIX `service xcatd restart`; + `service postgresql restart`; return $rc; }