X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=install-carnet-debian;h=ea85ed9beb989192985fa3c2ff904cc597163fa4;hb=f3c211b25248c7c23028dcc83039f15ca7c317c4;hp=459ae5f7cab01517472ef1b66d20968866d754b3;hpb=5f036916301c4945f0fec64ea7722cd096abadac;p=carnet-debian.git diff --git a/install-carnet-debian b/install-carnet-debian index 459ae5f..ea85ed9 100644 --- a/install-carnet-debian +++ b/install-carnet-debian @@ -2,9 +2,12 @@ set -e -. /usr/share/debconf/confmodule - -db_get carnet-packages/packages || true -packages="$RET" - -apt-get install $packages +packages="`debconf-show carnet-debian | awk -F: /packages/'{print $2}' | tr -d ','`" + +if [ -z "$packages" ]; then + echo "CN: No packages for install." +else + for package in $packages; do + apt-get -y install $package + done +fi