From 1dca721c5149f69067f38d4a33dabbebef98009b Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Mon, 22 Nov 2010 22:41:21 +0100 Subject: Attempt to fix integrity-check --- cron-jobs/integrity-check | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'cron-jobs') 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) [,,...] " >&2 - exit 1 + die "usage: $(basename $0) [,,...] " 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 -- cgit v1.2.3-24-g4f1b