Enable shared volumes in reprepro-mirror-update
If two reprepro mirrors share the same volume (as in mariadb) they end up possibly using the same $UNREF_FILE, which gets things mighty confused. Add the config filename as a key into the unreferenced file list to differentiate. Change-Id: I9f0df9bcf651438fee600091f631543260e40a01
This commit is contained in:
parent
7e603ce65b
commit
a4ffb330d2
@ -28,9 +28,10 @@ fi
|
||||
|
||||
REPREPRO_CONFIG=$1
|
||||
MIRROR_VOLUME=$2
|
||||
BASE=`cat ${REPREPRO_CONFIG}/options | grep base | cut -d' ' -f2`
|
||||
BASE=$(cat ${REPREPRO_CONFIG}/options | grep base | cut -d' ' -f2)
|
||||
CONFIG_KEY=$(basename $REPREPRO_CONFIG)
|
||||
|
||||
UNREF_FILE=/var/run/reprepro/${MIRROR_VOLUME}.unreferenced-files
|
||||
UNREF_FILE=/var/run/reprepro/${MIRROR_VOLUME}.${CONFIG_KEY}.unreferenced-files
|
||||
K5START="k5start -t -f /etc/reprepro.keytab service/reprepro -- ${TIMEOUT} "
|
||||
REPREPRO="$K5START reprepro --confdir $REPREPRO_CONFIG"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user