[pve-devel] applied: [PATCH common] debian/postinst: check for existing /etc/aliases

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Jun 15 15:39:15 CEST 2020


Am 6/12/20 um 11:14 AM schrieb Stoiko Ivanov:
> Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
> ---
> Tested by installing libpve-common-perl=6.0-4 on a buster system w/o
> /etc/aliases and then installing one with this patch applied (and the
> libproxmox-acme-perl dependency removed).
> debian/postinst | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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
> 

applied, amended the "fix #2796" prefix, thanks!




More information about the pve-devel mailing list