summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-11-22 22:41:21 +0100
committerPierre Schmitz <pierre@archlinux.de>2010-11-22 22:41:21 +0100
commit1dca721c5149f69067f38d4a33dabbebef98009b (patch)
tree4bf8f49e845e9374e0de895d5b45f1a0a7c1ad9d
parent9c624b099eb16e27c80ed8ff5f551ce6e8ad0682 (diff)
downloaddbscripts-1dca721c5149f69067f38d4a33dabbebef98009b.tar.gz
dbscripts-1dca721c5149f69067f38d4a33dabbebef98009b.tar.xz
Attempt to fix integrity-check
-rwxr-xr-xcron-jobs/integrity-check11
1 files changed, 6 insertions, 5 deletions
diff --git a/cron-jobs/integrity-check b/cron-jobs/integrity-check
index c120cfd..0a8650c 100755
--- a/cron-jobs/integrity-check
+++ b/cron-jobs/integrity-check
@@ -1,15 +1,16 @@
#!/bin/bash
-basedir="$(dirname $0)"
+. "$(dirname $0)/../db-functions"
+. "$(dirname $0)/../config"
+
if [ $# -ne 2 ]; then
- echo "usage: $(basename $0) <repo>[,<repo>,...] <mailto>" >&2
- exit 1
+ die "usage: $(basename $0) <repo>[,<repo>,...] <mailto>"
fi
for arch in ${ARCHES[@]}; do
- $basedir/check_archlinux/check_packages.py \
+ $(dirname $0)/check_archlinux/check_packages.py \
--repos="$1" \
--abs-tree="/srv/abs/rsync/$arch,/srv/abs/rsync/any" --arch="$arch" |\
- $basedir/devlist-mailer "Integrity Check $arch: $1" "$2"
+ $(dirname $0)/devlist-mailer "Integrity Check $arch: $1" "$2"
done