X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=blobdiff_plain;f=debian%2Fpostinst;h=7bd635a7c6bc70fcea39d1568776d878102b5585;hp=5a19c69bb4b60204e95a9b8ae916261cf63eab4d;hb=0bbe789c6a5bfeb0ab5717bab087b6aede422698;hpb=8342b610eab52ede9833fe2b3663313a93e53cc5 diff --git a/debian/postinst b/debian/postinst index 5a19c69..7bd635a 100644 --- a/debian/postinst +++ b/debian/postinst @@ -9,7 +9,7 @@ case "$1" in if test -n "$2"; then # TODO: remove once PVE 7.0 is released - if dpkg --compare-versions "$2" 'lt' '6.0-5'; then + 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