From 40fe45105c04ee5293197ee0361a1faa4b06f137 Mon Sep 17 00:00:00 2001 From: Stoiko Ivanov Date: Wed, 23 Oct 2019 18:10:28 +0200 Subject: [PATCH] add versioned postinst run of newaliases When installing from ISO '/etc/aliases' gets written correctly, however postfix needs '/etc/aliases.db' (generated by running newaliases) in order to work. added to the postinst script to fix the issue for users having installed from the ISO before this fix. Signed-off-by: Stoiko Ivanov --- debian/postinst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian/postinst b/debian/postinst index 4e5a4a53..a5f4d7ac 100755 --- a/debian/postinst +++ b/debian/postinst @@ -76,6 +76,13 @@ case "$1" in fi done fi + + # TODO: remove once PVE 7.0 is released + if test -n "$2"; then + if dpkg --compare-versions "$2" 'lt' '6.0-11'; then + newaliases || true + fi + fi ;; abort-upgrade|abort-remove|abort-deconfigure) -- 2.39.5