Don't write k5start banner to file list

k5start prints:

  "Kerberos initialization for service/reprepro@OPENSTACK.ORG"

This then gets redirected into the list of files to remove on the next
run - which is an error, since that's not a filename. Put the
redirection inside of a bash command so that only the data gets
redirected.

Change-Id: Icae10763b4bce78c7b674715826547c228980dd6
This commit is contained in:
Monty Taylor 2016-02-08 16:18:36 -06:00
parent 7ec1b3d7e3
commit bb953ce7fc

View File

@ -31,7 +31,7 @@ if [ -f $UNREF_FILE ] ; then
fi fi
echo "Saving list of newly unreferenced files for next time" echo "Saving list of newly unreferenced files for next time"
$REPREPRO dumpunreferenced > $UNREF_FILE k5start -t -f /etc/reprepro.keytab service/reprepro -- bash -c "reprepro --confdir $REPREPRO_CONFIG dumpunreferenced > $UNREF_FILE"
echo "Checking state of mirror" echo "Checking state of mirror"
$REPREPRO checkpool fast $REPREPRO checkpool fast