From 8e7c01395374ea829b523dd5235e575633e01f27 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Mon, 8 Feb 2016 10:35:53 -0600 Subject: [PATCH] Use k5start even for the readonly reprepro actions Now that the db files are in AFS, we need k5start because we need to be able to write lockfiles for them. Change-Id: I5c9554ca505ed56e84b601e40476527ef4af98fb --- .../files/reprepro/reprepro-mirror-update.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/openstack_project/files/reprepro/reprepro-mirror-update.sh b/modules/openstack_project/files/reprepro/reprepro-mirror-update.sh index 3a24af1a38..8478967e32 100644 --- a/modules/openstack_project/files/reprepro/reprepro-mirror-update.sh +++ b/modules/openstack_project/files/reprepro/reprepro-mirror-update.sh @@ -17,14 +17,14 @@ set -e UNREF_FILE=/var/run/reprepro/unreferenced-files -REPREPRO='reprepro --confdir /etc/reprepro' +REPREPRO='k5start -t -f /etc/reprepro.keytab service/reprepro -- timeout -k 2m 30m reprepro --confdir /etc/reprepro' echo "Obtaining reprepro tokens and running reprepro update" -k5start -t -f /etc/reprepro.keytab service/reprepro -- timeout -k 2m 30m $REPREPRO update +$REPREPRO update if [ -f $UNREF_FILE ] ; then echo "Cleaning up files made unreferenced on the last run" - k5start -t -f /etc/reprepro.keytab service/reprepro -- timeout -k 2m 30m $REPREPRO deleteifunreferenced < $UNREF_FILE + $REPREPRO deleteifunreferenced < $UNREF_FILE fi echo "Saving list of newly unreferenced files for next time"