summaryrefslogtreecommitdiff
path: root/extra/coadde/cron-jobs/integrity-check
blob: 74593800d5026b861d418710f3ac7ebc515a3c81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash

dirname="$(dirname "$(readlink -e "$0")")"

. "${dirname}/../config"
. "${dirname}/../db-functions"

script_lock

if [ $# -ne 1 ]; then
	die "usage: %s <mailto>" "${0##*/}"
fi
mailto=$1

check() {
	"${dirname}"/check_archlinux/check_packages.py \
		--repos="${repos}" \
		--abs-tree="/srv/abs/rsync/${arch},/srv/abs/rsync/any" \
		--repo-dir="${FTP_BASE}" \
		--arch="${arch}" \
	2>&1 | "${dirname}"/devlist-mailer "Integrity Check ${arch}: ${repos}" "${mailto}"
}

repos='core,extra,community'
arch='i686'
check

repos='core,extra,community,multilib'
arch='x86_64'
check

script_unlock