Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
c8a23087
Commit
c8a23087
authored
Feb 07, 2021
by
F-Plass
Browse files
Update truenas.sh
parent
ed46a078
Changes
1
Show whitespace changes
Inline
Side-by-side
deploy/truenas.sh
View file @
c8a23087
...
@@ -179,9 +179,18 @@ truenas_deploy() {
...
@@ -179,9 +179,18 @@ truenas_deploy() {
_info
"Reload WebUI from TrueNAS"
_info
"Reload WebUI from TrueNAS"
_restart_UI
=
$(
_get
"
$_api_url
/system/general/ui_restart"
)
# the command
# _restart_UI=$(_get "$_api_url/system/general/ui_restart")
_debug3 _restart_UI
"
$_restart_UI
"
# throws the Error 52
# for this command direct curl command
curl
--silent
-L
--no-keepalive
--user-agent
"
$USER_AGENT
"
-H
"
$_H1
"
"
$_api_url
/system/general/ui_restart"
ret
=
$?
_debug2 CURL_RETURN
"
$ret
"
if
[
-n
"
$_add_cert_result
"
]
&&
[
-n
"
$_activate_result
"
]
&&
[
"
$ret
"
==
"52"
]
;
then
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
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment