PVE-mods/debian/pve-mod.prerm
2026-06-07 12:55:03 +02:00

19 lines
383 B
Bash

#!/bin/bash
set -e
case "$1" in
remove|deconfigure)
# Revert PVE file patches before files are removed.
if [ -x /usr/lib/pve-mod/revert-patches.sh ]; then
/usr/lib/pve-mod/revert-patches.sh 2>&1 || true
fi
;;
upgrade)
# On upgrade, leave patches in place; postinst will re-apply them.
;;
esac
#DEBHELPER#
exit 0