X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=carnet-debian.git;a=blobdiff_plain;f=install-carnet-debian;h=68b4799651d5fcc8eb0fd52ddc027ceea825195d;hp=321310bf6148a9f9545095c43900dc4311aeb2bd;hb=HEAD;hpb=feee780663536b8e19ba08bb44dcbcd955bfcbda diff --git a/install-carnet-debian b/install-carnet-debian index 321310b..2acfef4 100644 --- a/install-carnet-debian +++ b/install-carnet-debian @@ -2,14 +2,17 @@ set -e -. /usr/share/debconf/confmodule - -db_get carnet-debian/packages || true -packages="`echo $RET | tr -d ','`" -db_stop || true +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 - apt-get 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 --yes --no-install-recommends install $packages fi