forked from EvergreenCrypto/docker-finance
client: plugins: tor: print info instead of warnings (when info)
This commit is contained in:
@@ -71,7 +71,7 @@ function tor::start()
|
||||
lib_utils::print_info "${tor_container}: container IP '${_ip}'"
|
||||
|
||||
# Need to wait for a working installation
|
||||
lib_utils::print_warning "${tor_container}: waiting for Tor installation"
|
||||
lib_utils::print_info "${tor_container}: waiting for Tor installation"
|
||||
while ! docker exec "$tor_container" /bin/sh -c 'apk info -e tor' 1>/dev/null; do
|
||||
sleep 1s
|
||||
done && lib_utils::print_info "${tor_container}: Tor installation ready"
|
||||
@@ -100,7 +100,7 @@ function tor::start()
|
||||
|
||||
# Test Tor connection
|
||||
local -r _sleep="30s"
|
||||
lib_utils::print_warning "${global_container}: testing connection (bootstrapping ~${_sleep})"
|
||||
lib_utils::print_info "${global_container}: testing connection (bootstrapping ~${_sleep})"
|
||||
sleep "$_sleep" # Give time to bootstrap
|
||||
# TODO: run timer to verify response (and fail if N times if no response)
|
||||
docker exec "$global_container" \
|
||||
@@ -116,7 +116,7 @@ function tor::stop()
|
||||
lib_utils::print_error "${tor_container}: container not running"
|
||||
return 1
|
||||
fi
|
||||
lib_utils::print_warning "${tor_container}: stopping container"
|
||||
lib_utils::print_info "${tor_container}: stopping container"
|
||||
docker container stop "$tor_container" &>/dev/null \
|
||||
&& lib_utils::print_info "${tor_container}: container stopped"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user