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
3bcb91f6
Commit
3bcb91f6
authored
Nov 11, 2021
by
F-Plass
Browse files
Update truenas.sh
solved the problem of UI-Restart after 12.0-U3
parent
4bb8e3a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy/truenas.sh
View file @
3bcb91f6
...
@@ -35,19 +35,6 @@ truenas_deploy() {
...
@@ -35,19 +35,6 @@ truenas_deploy() {
_debug _cca
"
$_cca
"
_debug _cca
"
$_cca
"
_debug _cfullchain
"
$_cfullchain
"
_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
_getdeployconf DEPLOY_TRUENAS_APIKEY
if
[
-z
"
$DEPLOY_TRUENAS_APIKEY
"
]
;
then
if
[
-z
"
$DEPLOY_TRUENAS_APIKEY
"
]
;
then
...
@@ -182,9 +169,6 @@ truenas_deploy() {
...
@@ -182,9 +169,6 @@ truenas_deploy() {
_info
"Reload WebUI from TrueNAS"
_info
"Reload WebUI from TrueNAS"
_restart_UI
=
$(
_get
"
$_api_url
/system/general/ui_restart"
)
_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
"
_debug2 _restart_UI
"
$_restart_UI
"
if
[
-n
"
$_add_cert_result
"
]
&&
[
-n
"
$_activate_result
"
]
;
then
if
[
-n
"
$_add_cert_result
"
]
&&
[
-n
"
$_activate_result
"
]
;
then
...
...
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