Merge pull request #98 from demonbane/fix_path

Fix PATH on Ubuntu systems if dpkg is likely to fail during AUTOINSTALL
This commit is contained in:
Henric Andersson 2016-09-01 15:51:03 -07:00 committed by GitHub
commit b74aafdc02

View file

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