mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-14 20:22:13 +08:00
Use _sleep instead of sleep
This commit is contained in:
@@ -121,7 +121,7 @@ _ws_check_jobid() {
|
|||||||
# n/a
|
# n/a
|
||||||
_ws_get_job_result() {
|
_ws_get_job_result() {
|
||||||
while true; do
|
while true; do
|
||||||
sleep 2
|
_sleep 2
|
||||||
_ws_response=$(_ws_call "core.get_jobs" "[[\"id\", \"=\", $1]]")
|
_ws_response=$(_ws_call "core.get_jobs" "[[\"id\", \"=\", $1]]")
|
||||||
if [ "$(printf "%s" "$_ws_response" | jq -r '.[]."state"')" != "RUNNING" ]; then
|
if [ "$(printf "%s" "$_ws_response" | jq -r '.[]."state"')" != "RUNNING" ]; then
|
||||||
_ws_result="$(printf "%s" "$_ws_response" | jq '.[]."result"')"
|
_ws_result="$(printf "%s" "$_ws_response" | jq '.[]."result"')"
|
||||||
@@ -322,7 +322,7 @@ truenas_ws_deploy() {
|
|||||||
_info "Restarting WebUI..."
|
_info "Restarting WebUI..."
|
||||||
_ws_response=$(_ws_call "system.general.ui_restart")
|
_ws_response=$(_ws_call "system.general.ui_restart")
|
||||||
_info "Waiting for UI restart..."
|
_info "Waiting for UI restart..."
|
||||||
sleep 15
|
_sleep 15
|
||||||
|
|
||||||
########## Certificates
|
########## Certificates
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user