Fixed bug with postfix prompts being displayed during install.
authorAndy Witter <awitter@georgialibraries.org>
Mon, 21 Oct 2013 17:42:02 +0000 (13:42 -0400)
committerAndy Witter <awitter@georgialibraries.org>
Mon, 21 Oct 2013 17:42:02 +0000 (13:42 -0400)
templates/setup.sh

index c95f2a2..c3be4fd 100755 (executable)
@@ -167,6 +167,12 @@ echo $(date) >> "$INSTALL_LOG"
 echo "Evergreen: $EG_VER" >> "$INSTALL_LOG"
 echo "GenaSYS: $VERSION" >> "$INSTALL_LOG"
 
+### Preload debconf 
+### If this node gets postfix then preconfigure Postfix.
+if [ -e "$WD/postfix.debconf" ]
+then
+        "$WD/postfix.debconf"
+fi
 
 ### Install dependencies
 if [ -e tar_file_apt.list ]
@@ -222,6 +228,9 @@ fi
 if [ -e "$WD/postfix.debconf" ]
 then
        "$WD/postfix.debconf"
+else
+       echo "Failed to pre-configure postfix"
+       sleep 4
 fi
 
 ### Setup LVS servers