Update truenas.sh

solved the problem of UI-Restart after 12.0-U3
pull/3396/head
F-Plass 3 years ago
parent 4bb8e3a121
commit 3bcb91f6ae

@ -35,19 +35,6 @@ truenas_deploy() {
_debug _cca "$_cca"
_debug _cfullchain "$_cfullchain"
if _exists "curl"; then
_debug "curl found, no Message to restartUI error"
else
if _exists "wget"; then
_err "Until Version of TrueNAS is older than TrueNAS-12.0-U2 there are problems with using wget"
_err "There is a bug when using the API Call restartUI with wget"
_err "The API call does not give any response, whit wget the api call restartUI would be called about 20 times"
_err "Please use curl!"
_err "Bug Report at https://jira.ixsystems.com/browse/NAS-109435"
return 1
fi
fi
_getdeployconf DEPLOY_TRUENAS_APIKEY
if [ -z "$DEPLOY_TRUENAS_APIKEY" ]; then
@ -182,9 +169,6 @@ truenas_deploy() {
_info "Reload WebUI from TrueNAS"
_restart_UI=$(_get "$_api_url/system/general/ui_restart")
_info "Until Version of TrueNAS is older than TrueNAS-12.0-U3 curl returns error 52"
_info "This is not a problem for tis scipt"
_info "See Bugreport: https://jira.ixsystems.com/browse/NAS-109435"
_debug2 _restart_UI "$_restart_UI"
if [ -n "$_add_cert_result" ] && [ -n "$_activate_result" ]; then

Loading…
Cancel
Save