aboutsummaryrefslogtreecommitdiffstats
path: root/roles/yum_mirror/templates/usr/local/sbin/reposync.sh.j2
blob: 368e41ef188d1d3af5177c79b947d4fd09a35ba5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

EXITSTATUS=0

{% for repo in yum_mirror_repositories %}
# {{ repo.name }}
dnf reposync \
  --norepopath \
  --download-path {{ yum_mirror_webroot }}/{{ repo.path }} \
  --download-metadata \
  --delete \
  --quiet \
  --repo {{ repo.id }} || EXITSTATUS=1

{% endfor %}

exit $EXITSTATUS