client: plugins: tor: refactor check for running dfi instance
This commit is contained in:
@@ -44,10 +44,9 @@ function tor::start()
|
|||||||
|
|
||||||
# NOTE: proxychains.conf's [ProxyList] won't allow hostnames (or Docker network container name).
|
# NOTE: proxychains.conf's [ProxyList] won't allow hostnames (or Docker network container name).
|
||||||
# So, to avoid conflicting IP address spaces, docker-finance will not hardcode address space.
|
# So, to avoid conflicting IP address spaces, docker-finance will not hardcode address space.
|
||||||
# Ergo, a already-running container will be needed (sorry, lib_docker::run())
|
# Ergo, an already-running container will be needed (sorry, lib_docker::run())
|
||||||
if ! docker container inspect -f '{{.State.Running}}' "$global_container" &>/dev/null; then
|
lib_docker::exec "" \
|
||||||
lib_utils::die_fatal "docker-finance not running! Bring \`up\` container and try again."
|
|| lib_utils::die_fatal "docker-finance not running! Bring \`up\` a \`dfi\` instance and try again."
|
||||||
fi
|
|
||||||
|
|
||||||
local -r _torrc="/etc/tor/torrc"
|
local -r _torrc="/etc/tor/torrc"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user