summaryrefslogtreecommitdiffstats
path: root/bin/update
blob: b47da851acb06fdacd225ed542f4dc1a48fd7585 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
set -e

SCRIPT=$(readlink -f "$0")
BASEDIR=$(dirname "$SCRIPT")

if [ ! -d CVE ]; then
	echo "run in data subdirectory" >&2
	exit 1
fi

cd CVE
rm -f allitems.html
# wget disabled since fetching allitems.html.gz via wget fails since 2015-04-09 from
# cve.mitre.org, add workaround with curl until solved
# wget --quiet https://cve.mitre.org/data/downloads/allitems.html.gz
# Note: ~/.curlrc on soriano contains:
# capath=/etc/ssl/ca-global
curl -s -o allitems.html.gz https://cve.mitre.org/data/downloads/allitems.html.gz
gunzip allitems.html.gz
$BASEDIR/updatelist allitems.html ../DSA/list ../DTSA/list ../DLA/list list > list.new
mv -f list.new list

© 2014-2024 Faster IT GmbH | imprint | privacy policy