mirror of
https://git.proxmox.com/git/pve-common
synced 2025-07-15 07:34:26 +00:00

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
21 lines
314 B
Bash
21 lines
314 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
#DEBHELPER#
|
|
|
|
case "$1" in
|
|
configure)
|
|
if test -n "$2"; then
|
|
|
|
# TODO: remove once PVE 7.0 is released
|
|
if dpkg --compare-versions "$2" 'lt' '6.0-5' && [ -e /etc/aliases ]; then
|
|
sed -E -i -e 's/^www:(\w)/www: \1/' /etc/aliases
|
|
fi
|
|
fi
|
|
;;
|
|
|
|
esac
|
|
|
|
exit 0
|