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@proxmox.com>
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)