crypto: handle nested p2pool archive layout

This commit is contained in:
Brad Stein 2025-12-24 19:16:47 -03:00
parent 1bbb88d9a3
commit bbe4fb2cff

View File

@ -47,7 +47,7 @@ spec:
mkdir -p /opt/p2pool mkdir -p /opt/p2pool
tar -xzf /tmp/p2pool.tgz -C /opt/p2pool tar -xzf /tmp/p2pool.tgz -C /opt/p2pool
ls -l /opt/p2pool ls -l /opt/p2pool
BIN="$(find /opt/p2pool -maxdepth 1 -type f -name 'p2pool*' | head -n1)" BIN="$(find /opt/p2pool -maxdepth 2 -type f -name 'p2pool*' | head -n1)"
test -n "${BIN}" test -n "${BIN}"
install -m0755 "${BIN}" /opt/p2pool/p2pool install -m0755 "${BIN}" /opt/p2pool/p2pool
env: env: