diff --git a/perl-xCAT-2.0/xCAT/Postage.pm b/perl-xCAT-2.0/xCAT/Postage.pm index fb3e595ad..fd66c40d3 100644 --- a/perl-xCAT-2.0/xCAT/Postage.pm +++ b/perl-xCAT-2.0/xCAT/Postage.pm @@ -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"; diff --git a/xCAT/postscripts/syslog b/xCAT/postscripts/syslog index ae305c359..44c984822 100755 --- a/xCAT/postscripts/syslog +++ b/xCAT/postscripts/syslog @@ -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