certbot - fix raspberrypi os 64bit detected as Debian
This commit is contained in:
@@ -53,7 +53,8 @@ step_1() {
|
||||
exe apt-get install $toolName ${sq_aptOpt}
|
||||
saveReturn $?
|
||||
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 install certbot
|
||||
endReturn "$toolName installation for $osName failed"
|
||||
@@ -71,6 +72,12 @@ step_2() {
|
||||
-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
|
||||
readonly sqr_minVersion=16
|
||||
# shellcheck disable=SC1091 # Don't follow this source
|
||||
|
Reference in New Issue
Block a user