feat(letsencrypt): RedHat compatible script
This commit is contained in:
parent
190b01fa6d
commit
9b58ab6971
|
@ -3,7 +3,15 @@
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
|
||||||
DESTDIR=/usr/local/share/ca-certificates
|
DESTDIR=/usr/local/share/ca-certificates
|
||||||
|
if [ ! -d "$DESTDIR" ]; then
|
||||||
|
DESTDIR=/etc/pki/ca-trust/source/anchors
|
||||||
|
fi
|
||||||
|
|
||||||
UPDATE_CERTS_CMD=update-ca-certificates
|
UPDATE_CERTS_CMD=update-ca-certificates
|
||||||
|
if [ -z "$(which $UPDATE_CERTS_CMD)" ]; then
|
||||||
|
UPDATE_CERTS_CMD="update-ca-trust extract"
|
||||||
|
fi
|
||||||
|
|
||||||
CERTS="$(cat <<EOF
|
CERTS="$(cat <<EOF
|
||||||
https://letsencrypt.org/certs/isrgrootx1.pem
|
https://letsencrypt.org/certs/isrgrootx1.pem
|
||||||
https://letsencrypt.org/certs/isrg-root-x2.pem
|
https://letsencrypt.org/certs/isrg-root-x2.pem
|
||||||
|
|
Loading…
Reference in New Issue