X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=carnet-debian.git;a=blobdiff_plain;f=install-carnet-debian;h=68b4799651d5fcc8eb0fd52ddc027ceea825195d;hp=ea85ed9beb989192985fa3c2ff904cc597163fa4;hb=HEAD;hpb=f3c211b25248c7c23028dcc83039f15ca7c317c4 diff --git a/install-carnet-debian b/install-carnet-debian index ea85ed9..2acfef4 100644 --- a/install-carnet-debian +++ b/install-carnet-debian @@ -5,9 +5,14 @@ set -e packages="`debconf-show carnet-debian | awk -F: /packages/'{print $2}' | tr -d ','`" if [ -z "$packages" ]; then - echo "CN: No packages for install." + echo "CN: Nema paketa odabranih za instalaciju." else - for package in $packages; do - apt-get -y install $package - done + # Need to be explicit about exim -> postfix transition + if [ "${packages%postfix-cn*}" != "$packages" ] -o + [ "${packages%amavisd-cn*}" != "$packages" ] + then + packages="$packages postfix" + fi + + apt --yes --no-install-recommends install $packages fi