It's not necessary to check rpm, install will return 0 if the package is installed and up to date

This commit is contained in:
Eric Warnke 2016-10-27 16:43:55 -04:00
parent 3996e11425
commit 461791dddc

View file

@ -118,7 +118,7 @@ elif [ -x "$(command -v rpm)" ]; then
LIGHTTPD_CFG="lighttpd.conf.fedora"
DNSMASQ_USER="nobody"
package_check_install() {
rpm -qa | grep ^"${1}"- > /dev/null || ${PKG_INSTALL} "${1}"
${PKG_INSTALL} "${1}"
}
else
echo "OS distribution not supported"