mirror of
https://github.com/unraid/api.git
synced 2025-12-31 13:39:52 -06:00
fix: attempt to restore upgradepkg if install failed
This commit is contained in:
@@ -442,6 +442,12 @@ preserveAction() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Check if upgradepkg does not exist and copy upgradepkg- to the path if it does not
|
||||||
|
if [[ ! -f /sbin/upgradepkg ]]; then
|
||||||
|
echo "upgradepkg not found, restoring from backup"
|
||||||
|
cp -f /sbin/upgradepkg- /sbin/upgradepkg
|
||||||
|
fi
|
||||||
|
|
||||||
# Loop through the array of preserveFilesDirs and perform actions
|
# Loop through the array of preserveFilesDirs and perform actions
|
||||||
for obj in "${preserveFilesDirs[@]}"
|
for obj in "${preserveFilesDirs[@]}"
|
||||||
do
|
do
|
||||||
|
|||||||
Reference in New Issue
Block a user