mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
--retry-connrefused exception for Debian8
This commit is contained in:
parent
22d524cfce
commit
c2511876c2
1 changed files with 7 additions and 1 deletions
|
@ -21,6 +21,8 @@ if [[ "$LE_STAGING" = 'yes' ]]; then
|
|||
API='https://acme-staging-v02.api.letsencrypt.org'
|
||||
fi
|
||||
|
||||
deb_release=$(cat /etc/debian_version | tr "." "\n" | head -n1)
|
||||
|
||||
# Includes
|
||||
source $VESTA/func/main.sh
|
||||
source $VESTA/func/domain.sh
|
||||
|
@ -60,7 +62,11 @@ query_le_v2() {
|
|||
# Save http response to file passed as "$4" arg or print to stdout if not provided
|
||||
# http response headers are always sent to stdout
|
||||
local save_to_file=${4:-"/dev/stdout"}
|
||||
curl --location --user-agent "myVesta" --insecure --retry 5 --retry-connrefused --silent --dump-header /dev/stdout --data "$post_data" "$1" --header "$content" --output "$save_to_file"
|
||||
if [ "$deb_release" -gt 8 ]; then
|
||||
curl --location --user-agent "myVesta" --insecure --retry 5 --retry-connrefused --silent --dump-header /dev/stdout --data "$post_data" "$1" --header "$content" --output "$save_to_file"
|
||||
else
|
||||
curl --location --user-agent "myVesta" --insecure --retry 5 --silent --dump-header /dev/stdout --data "$post_data" "$1" --header "$content" --output "$save_to_file"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue