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:
parent
ff4ee27458
commit
f8e0d8baea
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user