mirror of
https://github.com/unraid/api.git
synced 2026-01-01 06:01:18 -06:00
fix: restore upgradepkg before install
This commit is contained in:
@@ -695,6 +695,11 @@ if [[ -n "${ADDTEXT1}" || -n "${ADDTEXT2}" || -n "${ADDTEXT3}" ]]; then
|
|||||||
mv "${TMP}" "${FILE}"
|
mv "${TMP}" "${FILE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Restore the upgradepkg binary if it exists and the original does not
|
||||||
|
if [[ -f /sbin/upgradepkg- && ! -f /sbin/upgradepkg ]]; then
|
||||||
|
cp -f /sbin/upgradepkg- /sbin/upgradepkg
|
||||||
|
fi
|
||||||
|
|
||||||
# install the main txz
|
# install the main txz
|
||||||
upgradepkg --install-new --reinstall "${MAINTXZ}"
|
upgradepkg --install-new --reinstall "${MAINTXZ}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user