]> git.decadent.org.uk Git - dak.git/commitdiff
Link "master" to the tracefile, to have one name only
authorJoerg Jaspert <joerg@debian.org>
Mon, 4 Jan 2016 21:17:13 +0000 (22:17 +0100)
committerJoerg Jaspert <joerg@debian.org>
Mon, 4 Jan 2016 21:17:33 +0000 (22:17 +0100)
config/debian-security/make-mirror.sh
config/debian/dinstall.functions

index 1b803258aec6b3749f680e9e63bc1f809c49c64b..ebbdec40c412b7863bc41e69abcfc9667094457e 100755 (executable)
@@ -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/. .
index 88ba3688d528e461fa8b0dc92093018303a82b9e..ab392e779dbc5bd533ba8906b57d8a73c0e19c31 100644 (file)
@@ -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}