mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-07-31 12:00:07 -07:00
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:
commit
b74aafdc02
1 changed files with 5 additions and 0 deletions
|
@ -554,6 +554,11 @@ if [ ! -z "${PLEXSERVER}" -a "${AUTOINSTALL}" = "yes" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${AUTOINSTALL}" = "yes" ]; then
|
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}"
|
${DISTRO_INSTALL} "${DOWNLOADDIR}/${FILENAME}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue