Added -y to YUM and removed trailing whitespaces

This commit is contained in:
Henric Andersson 2015-08-13 17:48:00 -07:00
commit f405426fba

View file

@ -261,7 +261,6 @@ if [ -f "${DOWNLOADDIR}/${FILENAME}" -a "${FORCE}" != "yes" ]; then
if [ "${AUTOINSTALL}" != "yes" ]; then
exit 2
fi
SKIP_DOWNLOAD="yes"
fi
@ -282,7 +281,7 @@ fi
if [ "${AUTOINSTALL}" == "yes" ]; then
if [ "${REDHAT}" == "yes" ]; then
sudo yum localinstall "${DOWNLOADDIR}/${FILENAME}"
sudo yum -y localinstall "${DOWNLOADDIR}/${FILENAME}"
else
sudo dpkg -i "${DOWNLOADDIR}/${FILENAME}"
fi