summaryrefslogtreecommitdiff
path: root/cron-jobs/integrity-check
blob: 044f093cef8f86ddccf05be8af456875078af8a7 (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 $0)"

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

script_lock

if [ $# -ne 1 ]; then
	die "usage: ${0##*/} <mailto>"
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