🔊 add debug option
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
James Walker 2023-02-05 21:13:47 -05:00
parent a9a96aee94
commit 0fc5ba6a62
Signed by: walkah
GPG Key ID: 3C127179D6086E93

4
pin.sh
View File

@ -4,6 +4,10 @@ set -e
HOST=${PLUGIN_CLUSTER_HOST:-"/dns4/cluster.walkah.cloud"}
if [ ! -x ${PLUGIN_DEBUG} ]; then
echo "ipfs-cluster-ctl --host ${HOST} --basic-auth ${PLUGIN_CLUSTER_USER}:${PLUGIN_CLUSTER_PASSWORD} ${PLUGIN_CLUSTER_ARGS} add --quieter --cid-version 1 --name ${PLUGIN_DOMAIN} --recursive --local ${PLUGIN_EXTRA_ARGS} ${PLUGIN_PATH}"
fi
# pin to cluster
root_cid=$(ipfs-cluster-ctl \
--host ${HOST} \