Compare commits

..

No commits in common. "6c5c5801562f6ba9babe7922afb180c55ece3e36" and "13dc4cbd131c19adbda2888e3e639a8b0c640ad3" have entirely different histories.

1 changed files with 4 additions and 12 deletions

16
resources/com/cadoles/common/add-letsencrypt-ca.sh Executable file → Normal file
View File

@ -2,18 +2,10 @@
set -eo pipefail set -eo pipefail
declare -a DESTDIR_PATHS=( DESTDIR=/usr/local/share/ca-certificates
"/usr/local/share/ca-certificates" if [ ! -d "$DESTDIR" ]; then
"/etc/ca-certificates/trust-source/anchors" DESTDIR=/etc/pki/ca-trust/source/anchors
"/etc/pki/ca-trust/source/anchors" fi
)
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