Fix PATH on Ubuntu systems if dpkg is likely to fail during AUTOINSTALL

This commit is contained in:
Alex Malinovich 2016-08-30 23:34:19 -07:00
commit eeabf9d74a

View file

@ -548,6 +548,11 @@ if [ ! -z "${PLEXSERVER}" -a "${AUTOINSTALL}" = "yes" ]; then
fi
if [ "${AUTOINSTALL}" = "yes" ]; then
if ! hash ldconfig 2>/dev/null && [ -x /sbin/ldconfig -a "${DISTRO}" = "ubuntu" ]; then
export PATH=$PATH:/sbin
fi
# no elif since DISTRO_INSTALL will produce error output for us
${DISTRO_INSTALL} "${DOWNLOADDIR}/${FILENAME}"
fi