From a5c984630cb01f9711ba3b5b74914b8f70d391d0 Mon Sep 17 00:00:00 2001 From: Dorian Date: Mon, 30 Mar 2026 22:29:28 +0100 Subject: [PATCH] fix: escape quotes in electrumx health check for eval pass-through MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The health check command goes through multiple shell layers (assignment → variable expansion → eval → podman → sh -c). Inner double quotes need \\\" escaping to survive as literal " in Python. Co-Authored-By: Claude Opus 4.6 (1M context) --- scripts/container-specs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/container-specs.sh b/scripts/container-specs.sh index 8b6b9698..fa875e67 100755 --- a/scripts/container-specs.sh +++ b/scripts/container-specs.sh @@ -165,7 +165,7 @@ load_spec_electrumx() { SPEC_PORTS="50001:50001" SPEC_VOLUMES="/var/lib/archipelago/electrumx:/data" SPEC_MEMORY="$(mem_limit electrumx)" - SPEC_HEALTH_CMD="python3 -c 'import socket; s=socket.create_connection((\"localhost\",8000),2); s.close()' || exit 1" + SPEC_HEALTH_CMD="python3 -c 'import socket; socket.create_connection((\\\"localhost\\\",8000),2).close()' || exit 1" SPEC_ENV="DAEMON_URL=http://$BITCOIN_RPC_USER:$BITCOIN_RPC_PASS@bitcoin-knots:8332/ COIN=Bitcoin DB_DIRECTORY=/data SERVICES=tcp://:50001,rpc://0.0.0.0:8000" SPEC_TIER="1" SPEC_DATA_DIR="/var/lib/archipelago/electrumx"