]> gitweb.fluxo.info Git - hydra.git/commitdiff
Non-interactive package installation
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 9 Aug 2011 13:15:58 +0000 (10:15 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 9 Aug 2011 13:15:58 +0000 (10:15 -0300)
lib/hydra/misc

index ebe0bc97c28acb5a12ee09e3f390eb85be7057b9..f0bf210e2f6b72cb6f85c4217a3e8f5dade01d2c 100644 (file)
@@ -34,6 +34,6 @@ function hydra_install_package {
   dpkg -s $1 &> /dev/null
 
   if [ "$?" == "1" ]; then
-    apt-get install $1 -y
+    DEBIAN_FRONTEND=noninteractive apt-get install $1 -y
   fi
 }