hcoop-kprop: invert grep exit status to shut cron up
authorclinton_admin <clinton_admin@fritz.hcoop.net>
Tue, 24 Mar 2015 20:46:31 +0000 (16:46 -0400)
committerclinton_admin <clinton_admin@fritz.hcoop.net>
Tue, 24 Mar 2015 20:46:31 +0000 (16:46 -0400)
We want to eat the success message while allowing any error output to
be displayed, but we also want to return success.

hcoop-kprop

index 4cb0f2f..ef30ef6 100755 (executable)
@@ -11,7 +11,7 @@ export PATH=$PATH:/usr/sbin:/sbin
 kdb5_util dump /var/lib/krb5kdc/slave_datatrans
 
 kprop hopper.hcoop.net \
 kdb5_util dump /var/lib/krb5kdc/slave_datatrans
 
 kprop hopper.hcoop.net \
-   2>&1 | grep -v 'Database propagation to hopper.hcoop.net: SUCCEEDED'
+   2>&1 | (! grep -v 'Database propagation to hopper.hcoop.net: SUCCEEDED')
 
 # disabled because the kdc is too old and can't load dumps from fritz --clinton
 #kprop deleuze.hcoop.net \
 
 # disabled because the kdc is too old and can't load dumps from fritz --clinton
 #kprop deleuze.hcoop.net \