From a5dd55e0068040982d44615c5593aed122b7c496 Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Thu, 31 Oct 2013 08:25:20 +0100 Subject: [PATCH] Automatski prelazak sa exim na postfix. --- install-carnet-debian | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/install-carnet-debian b/install-carnet-debian index ff46a2e..68b4799 100644 --- a/install-carnet-debian +++ b/install-carnet-debian @@ -7,5 +7,12 @@ packages="`debconf-show carnet-debian | awk -F: /packages/'{print $2}' | tr -d ' if [ -z "$packages" ]; then echo "CN: No packages for install." else - apt-get --no-install-recommends install $packages + # Need to be explicit about exim -> postfix transition + if [ "${packages%postfix-cn*}" != "$packages" ] -o + [ "${packages%amavisd-cn*}" != "$packages" ] + then + packages="$packages postfix" + fi + + apt-get --yes --no-install-recommends install $packages fi -- 1.7.10.4