change syslog postscript to use env instead of tabdump
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1354 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
48c27d2fb9
commit
0e4f882335
@ -147,6 +147,13 @@ sub makescript {
|
||||
}
|
||||
push @scriptd, 'PATH=`dirname $0`:$PATH'."\n";
|
||||
push @scriptd, "export PATH\n";
|
||||
|
||||
my $stab = xCAT::Table->new('site');
|
||||
my $sent = $stab->getAttribs({key=>'svloglocal'},'value');
|
||||
if ($sent and $sent->{value}) {
|
||||
push @scriptd, "SVLOGLOCAL=".$sent->{'value'}."\n";
|
||||
push @scriptd, "export SVLOGLOCAL\n";
|
||||
}
|
||||
|
||||
if ($nodesetstate) {
|
||||
push @scriptd, "NODESETSTATE=".$nodesetstate."\n";
|
||||
|
@ -100,8 +100,7 @@ if [ -f /etc/xCATMN ]; then
|
||||
goLocal=1
|
||||
else
|
||||
if [ $isSN -eq 1 ]; then
|
||||
tmp=`tabdump site |grep svloglocal | awk -F , '{print $2}'`
|
||||
if [[ $tmp = "0" ]]; then
|
||||
if [[ $SVLOGLOCAL -eq 1 ]]; then
|
||||
goLocal=1
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user