blob: 8ab33928c3a676f1e2268ee6ea1ac3acf934c04e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh -e
#
# update-certdata
DEST="$CPT_ROOT/etc/certificates"
[ -d "$DEST" ] || mkdir -p "$DEST"
[ -w "$DEST" ] || {
printf '%s\n' "${0##*/}: root required to update CA certificates." >&2
exit 1
}
wget https://curl.haxx.se/ca/cacert.pem -O "$DEST/cert.pem"
printf '%s\n' "${0##*/}: updated cert.pem"
|