mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-11-10 00:11:45 +00:00
fix nc -q param for centos5
This commit is contained in:
parent
22514bee34
commit
850c1128df
9
le.sh
9
le.sh
@ -354,11 +354,12 @@ _saveaccountconf() {
|
|||||||
|
|
||||||
_startserver() {
|
_startserver() {
|
||||||
content="$1"
|
content="$1"
|
||||||
_NC="nc -q 1 -l"
|
|
||||||
|
|
||||||
nchelp="$(nc -h 2>&1)"
|
nchelp="$(nc -h 2>&1)"
|
||||||
#centos
|
|
||||||
if echo "$nchelp" | grep "nmap.org/ncat" >/dev/null ; then
|
if echo "$nchelp" | grep " \-q " >/dev/null ; then
|
||||||
|
_NC="nc -q 1 -l"
|
||||||
|
else
|
||||||
_NC="nc -l"
|
_NC="nc -l"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -701,7 +702,7 @@ issue() {
|
|||||||
elif [ "$code" == '409' ] ; then
|
elif [ "$code" == '409' ] ; then
|
||||||
_info "Already registered"
|
_info "Already registered"
|
||||||
else
|
else
|
||||||
_err "Register account Error."
|
_err "Register account Error: $response"
|
||||||
_clearup
|
_clearup
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user