From: Lukas Schauer Date: Mon, 10 Jul 2017 19:36:32 +0000 (+0200) Subject: load config for version information but disable verification X-Git-Tag: v0.5.0~31 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=bb99742aa74c06d66b607c3ad1abe5029aaca757;p=thirdparty%2Fdehydrated.git load config for version information but disable verification --- diff --git a/dehydrated b/dehydrated index e9e730e..2fa3247 100755 --- a/dehydrated +++ b/dehydrated @@ -206,7 +206,9 @@ load_config() { [[ -n "${PARAM_OCSP_MUST_STAPLE:-}" ]] && OCSP_MUST_STAPLE="${PARAM_OCSP_MUST_STAPLE}" [[ -n "${PARAM_IP_VERSION:-}" ]] && IP_VERSION="${PARAM_IP_VERSION}" - verify_config + if [ ! "${1:-}" = "noverify" ]; then + verify_config + fi store_configvars } @@ -815,6 +817,8 @@ sign_domain() { # Usage: --version (-v) # Description: Print version information command_version() { + load_config noverify + echo "Dehydrated by Lukas Schauer" echo "https://dehydrated.de" echo "" @@ -827,12 +831,12 @@ command_version() { [[ -n "${BASH_VERSION:-}" ]] && echo " bash: ${BASH_VERSION}" [[ -n "${ZSH_VERSION:-}" ]] && echo " zsh: ${ZSH_VERSION}" echo " sed: $(sed --version 2>&1 | head -n1)" - echo " openssl: $("${OPENSSL}" version 2>&1)" echo " curl: $(curl --version 2>&1 | head -n1 | cut -d" " -f1-2)" echo " awk: $(awk -W version 2>&1 | head -n1)" echo " grep: $(grep --version 2>&1 | head -n1)" echo " mktemp: $(mktemp --version 2>&1 | head -n1)" echo " diff: $(diff --version 2>&1 | head -n1)" + echo " openssl: $("${OPENSSL}" version 2>&1)" exit 0 }