d/postinst: version-guard migration to new pending pmg-score location

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2025-02-25 20:02:04 +01:00
parent bc33a433c1
commit b3558c4521

2
debian/postinst vendored
View File

@ -126,6 +126,7 @@ case "$1" in
fi
fi
if test -n "$2" && dpkg --compare-versions "$2" 'lt' '8.2.0'; then
old_score_location=/var/cache/pmg-scores.cf
new_score_location=/etc/mail/spamassassin/pmg-scores.cf.new
if test -e "$old_score_location"; then
@ -136,6 +137,7 @@ case "$1" in
echo "both $old_score_location and $new_score_location exist - please review manually"
fi
fi
fi
;;
abort-upgrade)