From: Joerg Jaspert Date: Wed, 16 Feb 2011 22:23:01 +0000 (+0100) Subject: export changelogs on security X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=c35377bd1fb884034708f74511f16aa06fca1d8a;p=dak.git export changelogs on security Signed-off-by: Joerg Jaspert --- diff --git a/config/debian-security/dak.conf b/config/debian-security/dak.conf index 32dc6aad..fdfd2120 100644 --- a/config/debian-security/dak.conf +++ b/config/debian-security/dak.conf @@ -226,6 +226,7 @@ Dir { Root "/srv/security-master.debian.org/ftp/"; Pool "/srv/security-master.debian.org/ftp/pool/"; + Export "/srv/security-master.debian.org/export/"; Dak "/srv/security-master.debian.org/dak/"; Templates "/srv/security-master.debian.org/dak/templates/"; PoolRoot "pool/"; @@ -433,3 +434,8 @@ Urgency critical; }; }; + +Changelogs +{ + Export "/srv/security-master.debian.org/export/changelogs"; +} diff --git a/config/debian-security/export.sh b/config/debian-security/export.sh new file mode 100755 index 00000000..339a8bfc --- /dev/null +++ b/config/debian-security/export.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +set -e +set -u +set -E + +export SCRIPTVARS=/srv/security-master.debian.org/dak/config/debian-security/vars +. $SCRIPTVARS + +# Make sure we start out with a sane umask setting +umask 022 + +# And use one locale, no matter what the caller has set +export LANG=C +export LC_ALL=C + +# extract changelogs and stuff +function changelogs() { + log "Extracting changelogs" + dak make-changelog -e + mkdir -p ${exportpublic}/changelogs + cd ${exportpublic}/changelogs + rsync -aHW --delete --delete-after --ignore-errors ${exportdir}/changelogs/. . + sudo -H -u archvsync /home/archvsync/runmirrors metasdo > ~dak/runmirrors-metadata.log 2>&1 & +} + +changelogs