proxmox-mail-forward/debian/proxmox-mail-forward.postinst
Thomas Lamprecht 11f4d434a5 d/postinst: add debhelper token
results in no change for now

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-26 17:21:51 +02:00

25 lines
531 B
Bash
Executable File

#!/bin/sh
set -e
case "$1" in
configure)
# pve-manager is responsible for switching over, so skip when detecting pvemailforward
if ! test -f /root/.forward || ! grep -E -q '\|/usr/bin/(proxmox-mail-|pvemail)forward' /root/.forward; then
echo '|/usr/bin/proxmox-mail-forward' >>/root/.forward
fi
;;
abort-upgrade|abort-remove|abort-deconfigure|triggered)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0