Automatski prelazak sa exim na postfix.
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Thu, 31 Oct 2013 07:25:20 +0000 (08:25 +0100)
committerValentin Vidic <Valentin.Vidic@CARNet.hr>
Thu, 31 Oct 2013 07:25:20 +0000 (08:25 +0100)
install-carnet-debian

index ff46a2e..68b4799 100644 (file)
@@ -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