From: Valentin Vidic Date: Thu, 31 Oct 2013 07:25:20 +0000 (+0100) Subject: Automatski prelazak sa exim na postfix. X-Git-Tag: debian/7.0.3~1 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=a5dd55e0068040982d44615c5593aed122b7c496;p=carnet-debian.git Automatski prelazak sa exim na postfix. --- 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