Merge "Use k5start even for the readonly reprepro actions"

This commit is contained in:
Jenkins 2016-02-08 17:46:03 +00:00 committed by Gerrit Code Review
commit 178c136a66

View File

@ -17,14 +17,14 @@
set -e set -e
UNREF_FILE=/var/run/reprepro/unreferenced-files 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" 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 if [ -f $UNREF_FILE ] ; then
echo "Cleaning up files made unreferenced on the last run" 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 fi
echo "Saving list of newly unreferenced files for next time" echo "Saving list of newly unreferenced files for next time"