mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-22 21:21:42 +00:00
Update truenas.sh
This commit is contained in:
parent
0e341726d2
commit
4f7c2bf8c3
@ -179,14 +179,9 @@ truenas_deploy() {
|
|||||||
|
|
||||||
|
|
||||||
_info "Reload WebUI from TrueNAS"
|
_info "Reload WebUI from TrueNAS"
|
||||||
curl --silent -L --no-keepalive --user-agent "$USER_AGENT" "$_api_url/system/general/ui_restart"
|
_restart_UI=$(_get "$_api_url/system/general/ui_restart")
|
||||||
ret=$?
|
|
||||||
|
|
||||||
_debug CURL_RETURN "$ret"
|
_debug3 _restart_UI "$_restart_UI"
|
||||||
if [ "$ret" != "0" ]; then
|
|
||||||
_err "Please refer to https://curl.haxx.se/libcurl/c/libcurl-errors.html for error code: $ret"
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user