diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-11-22 22:41:21 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-11-22 22:41:21 +0100 |
commit | 1dca721c5149f69067f38d4a33dabbebef98009b (patch) | |
tree | 4bf8f49e845e9374e0de895d5b45f1a0a7c1ad9d /cron-jobs | |
parent | 9c624b099eb16e27c80ed8ff5f551ce6e8ad0682 (diff) |
Attempt to fix integrity-check
Diffstat (limited to 'cron-jobs')
-rwxr-xr-x | cron-jobs/integrity-check | 11 |
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 |