Compare commits
3 Commits
13dc4cbd13
...
6c5c580156
Author | SHA1 | Date | |
---|---|---|---|
6c5c580156 | |||
2fbe2ab0b0 | |||
85cb43b272 |
16
resources/com/cadoles/common/add-letsencrypt-ca.sh
Normal file → Executable file
16
resources/com/cadoles/common/add-letsencrypt-ca.sh
Normal file → Executable file
@ -2,10 +2,18 @@
|
|||||||
|
|
||||||
set -eo pipefail
|
set -eo pipefail
|
||||||
|
|
||||||
DESTDIR=/usr/local/share/ca-certificates
|
declare -a DESTDIR_PATHS=(
|
||||||
if [ ! -d "$DESTDIR" ]; then
|
"/usr/local/share/ca-certificates"
|
||||||
DESTDIR=/etc/pki/ca-trust/source/anchors
|
"/etc/ca-certificates/trust-source/anchors"
|
||||||
fi
|
"/etc/pki/ca-trust/source/anchors"
|
||||||
|
)
|
||||||
|
|
||||||
|
for path in "${DESTDIR_PATHS[@]}"; do
|
||||||
|
if [ -d "$path" ]; then
|
||||||
|
DESTDIR=$path
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
UPDATE_CERTS_CMD=update-ca-certificates
|
UPDATE_CERTS_CMD=update-ca-certificates
|
||||||
if [ -z "$(which $UPDATE_CERTS_CMD)" ]; then
|
if [ -z "$(which $UPDATE_CERTS_CMD)" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user