mirror-in-a-can/ubuntu/debmirror.sh.j2

18 lines
564 B
Django/Jinja

#!/bin/bash
export GNUPGHOME=/srv/mirror/lanyard
arch={{ arch }}
section="main,restricted,universe,multiverse"
release="{{ release }},{{ release }}-updates,{{ release }}-security,{{ release }}-backports"
upstream="{{ upstream }}"
inPath="/ubuntu"
outPath="/srv/mirror/ubuntu"
proto="rsync"
debmirror -a $arch --no-source --rsync-options "-aIL --partial" \
-s $section -h $upstream -d $release -r $inPath \
{% for section in excluded %}
--exclude-deb-section={{ section }} \
{% endfor %}
--method=$proto $outPath