crypto: fetch p2pool from github with debug

This commit is contained in:
Brad Stein 2025-12-24 19:14:44 -03:00
parent b71c145e6e
commit 1bbb88d9a3

View File

@ -36,7 +36,7 @@ spec:
command: ["/bin/sh","-c"]
args:
- |
set -euo pipefail
set -euxo pipefail
apk add --no-cache curl tar openssl >/dev/null
test -n "${P2POOL_URL}"
echo "Downloading ${P2POOL_URL}"
@ -46,6 +46,7 @@ spec:
fi
mkdir -p /opt/p2pool
tar -xzf /tmp/p2pool.tgz -C /opt/p2pool
ls -l /opt/p2pool
BIN="$(find /opt/p2pool -maxdepth 1 -type f -name 'p2pool*' | head -n1)"
test -n "${BIN}"
install -m0755 "${BIN}" /opt/p2pool/p2pool