From bb953ce7fc61e0702a3adf1f1a4e7d1252d6c6de Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Mon, 8 Feb 2016 16:18:36 -0600 Subject: [PATCH] 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 --- .../openstack_project/files/reprepro/reprepro-mirror-update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openstack_project/files/reprepro/reprepro-mirror-update.sh b/modules/openstack_project/files/reprepro/reprepro-mirror-update.sh index 4f86f583a4..e4c5a898c7 100644 --- a/modules/openstack_project/files/reprepro/reprepro-mirror-update.sh +++ b/modules/openstack_project/files/reprepro/reprepro-mirror-update.sh @@ -31,7 +31,7 @@ if [ -f $UNREF_FILE ] ; then fi 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" $REPREPRO checkpool fast