mirror of
https://github.com/plantroon/acme.sh.git
synced 2025-01-13 15:40:57 +00:00
Update truenas.sh
This commit is contained in:
parent
05737b85eb
commit
854e520528
@ -184,13 +184,13 @@ truenas_deploy() {
|
|||||||
# throws the Error 52
|
# throws the Error 52
|
||||||
# for this command direct curl command
|
# for this command direct curl command
|
||||||
curl --silent -L --no-keepalive --user-agent "$USER_AGENT" -H "$_H1" "$_api_url/system/general/ui_restart"
|
curl --silent -L --no-keepalive --user-agent "$USER_AGENT" -H "$_H1" "$_api_url/system/general/ui_restart"
|
||||||
ret=$?
|
_ret=$?
|
||||||
_debug2 CURL_RETURN "$ret"
|
_debug2 CURL_RETURN "$_ret"
|
||||||
|
|
||||||
if [ -z "$_add_cert_result" ] && [ -z "$_activate_result" ] && [ "$ret" != "52" ]; then
|
if [ -n "$_add_cert_result" ] && [ -n "$_activate_result" ] && [ "$ret" == "52" ]; then
|
||||||
_err "Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: $ret"
|
|
||||||
return 1
|
|
||||||
else
|
|
||||||
return 0
|
return 0
|
||||||
|
else
|
||||||
|
_err "Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: $_ret"
|
||||||
|
return 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user