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:
linggao 2008-05-12 19:28:44 +00:00
parent 48c27d2fb9
commit 0e4f882335
2 changed files with 8 additions and 2 deletions

View File

@ -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";

View File

@ -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