certbot - fix raspberrypi os 64bit detected as Debian

This commit is contained in:
2022-12-22 11:47:50 +01:00
parent a703d98250
commit 511b6145bb

View File

@@ -53,7 +53,8 @@ step_1() {
exe apt-get install $toolName ${sq_aptOpt} exe apt-get install $toolName ${sq_aptOpt}
saveReturn $? saveReturn $?
endReturn "$toolName installation for $osName failed" endReturn "$toolName installation for $osName failed"
elif [ "$osName" == "Raspbian" ] ; then elif [ "$osName" == "Raspbian" ] || [ "${osName}" == "Debian" ] ; then
info "Install ${toolName} from OS repository"
exe apt update exe apt update
exe apt install certbot exe apt install certbot
endReturn "$toolName installation for $osName failed" endReturn "$toolName installation for $osName failed"
@@ -71,6 +72,12 @@ step_2() {
-m "$CERTBOT_MAIL" ${CERTBOT_DOMAINS[@]/#/-d } -m "$CERTBOT_MAIL" ${CERTBOT_DOMAINS[@]/#/-d }
} }
step_10_info() { echo 'Print certificate information'; }
step_10_alias() { echo 'info'; }
step_10() {
exe openssl x509 -text -noout -in "/etc/letsencrypt/live/${CERTBOT_DOMAINS[0]}/cert.pem"
}
# shellcheck disable=SC2034 # Appears unused # shellcheck disable=SC2034 # Appears unused
readonly sqr_minVersion=16 readonly sqr_minVersion=16
# shellcheck disable=SC1091 # Don't follow this source # shellcheck disable=SC1091 # Don't follow this source