summaryrefslogtreecommitdiffstats
path: root/check-external/cronjob.sh
blob: be9ab9f1c9fade22c15e58daebbb418da7c85719 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

set -eu

cd "$(dirname "$0")"

renice -n 20 -p $$ >/dev/null
ionice -c 3 -p $$

HOME=$PWD
export HOME

# wget settings
echo 'verbose = off' > .wgetrc
echo 'ca-certificate=/etc/ssl/ca-global/ca-certificates.crt' >> .wgetrc
# curl settings
echo 'capath = /etc/ssl/ca-global' > .curlrc
output="$(./update.sh 2>&1)" || {
    es=$?
    echo "$output"
    exit $es
}

./lookup.sh | grep -v NOT-FOR-US

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