Print less output when setting up one chroot fails and others succeed.
authorPaul Wise <pabs@debian.org>
Mon, 10 Nov 2014 02:16:49 +0000 (10:16 +0800)
committerPaul Wise <pabs@debian.org>
Mon, 10 Nov 2014 02:18:07 +0000 (10:18 +0800)
modules/porterbox/files/setup-all-dchroots
modules/porterbox/manifests/init.pp

index 3c39b48..0b4469b 100755 (executable)
@@ -76,7 +76,7 @@ err=0
 
 for a in $archs; do
     for s in `get_suites "$a"`; do
-        if ! setup-dchroot -f -a "$a" "$s"; then
+        if ! chronic setup-dchroot -f -a "$a" "$s"; then
             err=1
             echo >&2
             echo >&2 "Error: setting up $s:$a dchroot failed."
index 8017985..d124831 100644 (file)
@@ -18,7 +18,7 @@ class porterbox {
                source  => 'puppet:///modules/porterbox/setup-all-dchroots',
        }
        file { '/etc/cron.d/puppet-update-dchroots':
-               content  => "0 15 * * 0 root PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin chronic setup-all-dchroots\n",
+               content  => "0 15 * * 0 root PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin setup-all-dchroots\n",
        }
        file { '/etc/cron.weekly/puppet-mail-big-homedirs':
                mode    => '0555',