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 <[email protected]>
---
 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


_______________________________________________
pve-devel mailing list
[email protected]
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to