summaryrefslogtreecommitdiff
path: root/scripts/aggregate.sh
diff options
context:
space:
mode:
authorBjörn Mattsson <bjorn@sunet.se>2023-03-06 11:22:05 +0100
committerBjörn Mattsson <bjorn@sunet.se>2023-03-06 11:22:05 +0100
commit467dbdbf3d7212e25ee69daeaadd8adba7c7c5b8 (patch)
treed3576d5f2d4b5cc676c0a12ef8f8c3c83b474bf5 /scripts/aggregate.sh
parentbc1d55080e5d42e6ef2bba892d640aa8f68bbc90 (diff)
Moved files to make ths repo signed
Diffstat (limited to 'scripts/aggregate.sh')
-rwxr-xr-xscripts/aggregate.sh31
1 files changed, 0 insertions, 31 deletions
diff --git a/scripts/aggregate.sh b/scripts/aggregate.sh
deleted file mode 100755
index 35ac1a7b..00000000
--- a/scripts/aggregate.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-
-aggregate_interval_min=60
-
-DIR=`pwd`
-ODIR=$1
-
-last_aggregate_ts=$ODIR/last_aggregate.ts
-
-if find $last_aggregate_ts -mmin -$aggregate_interval_min 2>/dev/null | grep -q . ; then
- exit 0
-fi
-
-rm -f $ODIR/*.xml
-
-grep -v -e '^#' $ODIR/metadata.lst | grep . | (while read url cert; do
- cfile=""
- if [ "x$cert" != "x" ]; then
- cfile=$DIR/certs/$cert
- fi
- cmd="$DIR/scripts/pull-and-verify.sh $url $ODIR $cfile"
- $cmd
- ret=$?
- if [ "$ret" != "0" ] ; then
- echo "$cmd returned $ret"
- exit $ret
- fi
-done) || exit $ret
-
-touch $last_aggregate_ts
-