]> git.proxmox.com Git - pve-common.git/blame - debian/postinst
fix #2796: debian/postinst: check for existing /etc/aliases
[pve-common.git] / debian / postinst
CommitLineData
c5c5812e
TL
1#!/bin/sh
2
3set -e
4
5#DEBHELPER#
6
7case "$1" in
8 configure)
9 if test -n "$2"; then
10
11 # TODO: remove once PVE 7.0 is released
0bbe789c 12 if dpkg --compare-versions "$2" 'lt' '6.0-5' && [ -e /etc/aliases ]; then
c5c5812e
TL
13 sed -E -i -e 's/^www:(\w)/www: \1/' /etc/aliases
14 fi
15 fi
16 ;;
17
18esac
19
20exit 0