mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 17:46:38 +00:00
Add Perl library path to xcat.sh
This commit is contained in:
parent
730cafbb03
commit
37486f5bed
@ -318,6 +318,11 @@ PATH=\$XCATROOT/bin:\$XCATROOT/sbin:\$XCATROOT/share/xcat/tools:\$PATH
|
||||
MANPATH=\$XCATROOT/share/man:\$MANPATH
|
||||
export XCATROOT PATH MANPATH
|
||||
export PERL_BADLANG=0
|
||||
# If /usr/local/share/perl5 is not already in @INC, add it to PERL5LIB
|
||||
perl -e "print \"@INC\"" | egrep "(^|\W)/usr/local/share/perl5($| )" > /dev/null
|
||||
if [ \$? = 1 ]; then
|
||||
export PERL5LIB=/usr/local/share/perl5:\$PERL5LIB
|
||||
fi
|
||||
EOF
|
||||
|
||||
# export XCATSSLVER for sles11. Others OS can work without this setting.
|
||||
@ -337,6 +342,11 @@ else
|
||||
setenv MANPATH \${XCATROOT}/share/man:\${MANPATH}
|
||||
endif
|
||||
setenv PERL_BADLANG 0
|
||||
# If /usr/local/share/perl5 is not already in @INC, add it to PERL5LIB
|
||||
perl -e "print \"@INC\"" | egrep "(^|\W)/usr/local/share/perl5($| )" > /dev/null
|
||||
if [ \$? = 1 ]; then
|
||||
setenv PERL5LIB /usr/local/share/perl5:\$PERL5LIB
|
||||
fi
|
||||
EOF
|
||||
chmod 755 /etc/profile.d/xcat.*
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user