-Accept either /usr/bin or /usr/sbin as valid location for stunnel
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1400 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
0777b6bbd5
commit
579b1ba494
@ -38,7 +38,7 @@ do
|
||||
#wget --wait=10 --random-wait --waitretry=10 --retry-connrefused -t 0 -T 60 http://$i/install/autoinst/xcatpost.tar.gz
|
||||
if [ "$?" = "0" ]
|
||||
then
|
||||
if [ -x /usr/sbin/stunnel ]; then #Stop if no stunnel to help the next bit
|
||||
if [ -x /usr/sbin/stunnel -o -x /usr/bin/stunnel ]; then #Stop if no stunnel to help the next bit
|
||||
echo client=yes > /etc/stunnel/stunnel.conf
|
||||
echo foreground=yes >> /etc/stunnel/stunnel.conf
|
||||
echo output=/dev/null >> /etc/stunnel/stunnel.conf
|
||||
|
@ -38,7 +38,7 @@ do
|
||||
#wget --wait=10 --random-wait --waitretry=10 --retry-connrefused -t 0 -T 60 http://$i/install/autoinst/xcatpost.tar.gz
|
||||
if [ "$?" = "0" ]
|
||||
then
|
||||
if [ -x /usr/sbin/stunnel ]; then #Stop if no stunnel to help the next bit
|
||||
if [ -x /usr/sbin/stunnel -o -x /usr/bin/stunnel ]; then #Stop if no stunnel to help the next bit
|
||||
echo client=yes > /etc/stunnel/stunnel.conf
|
||||
echo foreground=yes >> /etc/stunnel/stunnel.conf
|
||||
echo output=/dev/null >> /etc/stunnel/stunnel.conf
|
||||
|
@ -36,7 +36,7 @@ fi
|
||||
# logger -t xcat "Install: using server provided host key for convenience."
|
||||
# cp /xcatpost/hostkeys/*_key /etc/ssh/
|
||||
#fi
|
||||
if [ ! -x /usr/sbin/stunnel ]; then #Stop if no stunnel to help the next bit
|
||||
if [ ! -x /usr/sbin/stunnel -a ! -x /usr/bin/stunnel ]; then #Stop if no stunnel to help the next bit
|
||||
exit 0
|
||||
fi
|
||||
allowcred.awk &
|
||||
|
Loading…
Reference in New Issue
Block a user