From f99274b09b7fe45607d95d24fd83f2843307cd7d Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Mon, 4 Jan 2016 22:17:13 +0100 Subject: [PATCH] Link "master" to the tracefile, to have one name only --- config/debian-security/make-mirror.sh | 2 ++ config/debian/dinstall.functions | 3 +++ 2 files changed, 5 insertions(+) diff --git a/config/debian-security/make-mirror.sh b/config/debian-security/make-mirror.sh index 1b803258..ebbdec40 100755 --- a/config/debian-security/make-mirror.sh +++ b/config/debian-security/make-mirror.sh @@ -9,5 +9,7 @@ echo "Regenerating \"public\" mirror/ hardlink fun" date -u > /srv/security-master.debian.org/ftp/project/trace/security-master.debian.org echo "Using dak v1" >> /srv/security-master.debian.org/ftp/project/trace/security-master.debian.org echo "Running on host: $(hostname -f)" >> /srv/security-master.debian.org/ftp/project/trace/security-master.debian.org +cd /srv/security-master.debian.org/ftp/project/trace/ +ln -sf security-master.debian.org master cd /srv/security.debian.org/archive/debian-security/ rsync -aH --link-dest /srv/security-master.debian.org/ftp/ --exclude Archive_Maintenance_In_Progress --delete --delete-after --ignore-errors /srv/security-master.debian.org/ftp/. . diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions index 88ba3688..ab392e77 100644 --- a/config/debian/dinstall.functions +++ b/config/debian/dinstall.functions @@ -481,6 +481,9 @@ function mirror() { echo "Using dak v1" >> ${TRACEFILE} echo "Running on host: $(hostname -f)" >> ${TRACEFILE} echo "Archive serial: ${SERIAL}" >> ${TRACEFILE} + # Now make it accessible via one name, no matter on which host we run + cd ${archiveroot}/project/trace/ + ln -sf ftp-master.debian.org master mkdir -p ${targetpath} cd ${targetpath} -- 2.39.5