]> gitweb.fluxo.info Git - puppet-apt.git/commitdiff
Changing apt update command to be dash-compatible
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 30 Jun 2010 17:24:21 +0000 (14:24 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 30 Jun 2010 17:24:21 +0000 (14:24 -0300)
manifests/init.pp

index dcd4b2091b628bbfd37f2f324a5200d9422746f6..00f03962f617aa557dfc208aa05be692fd4eba9e 100644 (file)
@@ -102,7 +102,7 @@ class apt {
   }
 
   if $apt_update_method == 'exec' {
-    exec { "/usr/bin/apt-get update && /usr/bin/apt-get autoclean #hourly":
+    exec { "/usr/bin/apt-get update > /dev/null 2>&1 && /usr/bin/apt-get autoclean > /dev/null 2>&1 #hourly":
       require => [ File["/etc/apt/sources.list"], File["/etc/apt/preferences"], File[apt_config] ],
       # Another Semaphor for all packages to reference
       alias => apt_updated,