@@ -1401,6 +1401,12 @@ _ss() {
14011401 return 0
14021402 fi
14031403
1404+ if [ " $( uname) " = " AIX" ]; then
1405+ _debug " Using: AIX netstat"
1406+ netstat -an | grep " ^tcp" | grep " LISTEN" | grep " \.$_port "
1407+ return 0
1408+ fi
1409+
14041410 if _exists " netstat" ; then
14051411 _debug " Using: netstat"
14061412 if netstat -help 2>&1 | grep " \-p proto" > /dev/null; then
@@ -2761,7 +2767,7 @@ _initAPI() {
27612767 _request_retry_times=0
27622768 while [ -z " $ACME_NEW_ACCOUNT " ] && [ " ${_request_retry_times} " -lt " $MAX_API_RETRY_TIMES " ]; do
27632769 _request_retry_times=$( _math " $_request_retry_times " + 1)
2764- response=$( _get " $_api_server " )
2770+ response=$( _get " $_api_server " " " 10 )
27652771 if [ " $? " != " 0" ]; then
27662772 _debug2 " response" " $response "
27672773 _info " Cannot init API for: $_api_server ."
@@ -3507,7 +3513,7 @@ _on_before_issue() {
35073513 _debug _chk_alt_domains " $_chk_alt_domains "
35083514 # run pre hook
35093515 if [ " $_chk_pre_hook " ]; then
3510- _info " Runing pre hook:'$_chk_pre_hook '"
3516+ _info " Running pre hook:'$_chk_pre_hook '"
35113517 if ! (
35123518 export Le_Domain=" $_chk_main_domain "
35133519 export Le_Alt=" $_chk_alt_domains "
@@ -4496,6 +4502,7 @@ issue() {
44964502
44974503 if ! _on_before_issue " $_web_roots " " $_main_domain " " $_alt_domains " " $_pre_hook " " $_local_addr " ; then
44984504 _err " _on_before_issue."
4505+ _on_issue_err " $_post_hook "
44994506 return 1
45004507 fi
45014508
0 commit comments