don't let a patch failure abort apt install
This commit is contained in:
parent
96bd5cab8b
commit
57ef8387d3
7
debian/pve-mod.postinst
vendored
7
debian/pve-mod.postinst
vendored
@ -71,8 +71,11 @@ EOF
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
configure)
|
configure)
|
||||||
# Apply patches for any enabled modules. Fails loudly on error.
|
# Apply patches for any enabled modules. Don't abort the install if a
|
||||||
/usr/lib/pve-mod/apply-patches.sh
|
# patch fails — warn instead so dpkg doesn't end half-configured.
|
||||||
|
if ! /usr/lib/pve-mod/apply-patches.sh; then
|
||||||
|
echo "pve-mod: WARNING: Some patches failed to apply. Run 'pve-mod-configure' to retry." >&2
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -z "$2" ]; then
|
if [ -z "$2" ]; then
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user