[pve-devel] [PATCH manager v2 1/1] add versioned postinst run of newaliases
Stoiko Ivanov
s.ivanov at proxmox.com
Wed Oct 23 18:10:28 CEST 2019
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 <s.ivanov at proxmox.com>
---
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.20.1
More information about the pve-devel
mailing list