add touch of xCATSN

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1067 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2008-04-15 18:33:55 +00:00
parent ff4ee27458
commit f8e0d8baea

View File

@ -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())
{
&copyCertstoSN;
}
&copyCertstoSN;
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;
}