fix for bug 4038: do not override --installdir with xcatdsklspost

This commit is contained in:
ligc 2014-04-03 09:44:29 -05:00
parent af9b887d23
commit b572e045fb

View File

@ -42,12 +42,16 @@ download_postscripts()
return 1;
fi
if [ -f /opt/xcat/xcatinfo ]; then
INSTALLDIR=`grep 'INSTALLDIR' /opt/xcat/xcatinfo |cut -d= -f2`
fi
# Do not override the parameter --installdir
if [ -z "$INSTALLDIR" ]; then
INSTALLDIR="/install"
if [ -f /opt/xcat/xcatinfo ]; then
INSTALLDIR=`grep 'INSTALLDIR' /opt/xcat/xcatinfo |cut -d= -f2`
fi
if [ -z "$INSTALLDIR" ]; then
INSTALLDIR="/install"
fi
fi
max_retries=5
retry=0
rc=1 # this is a fail return