diff --git a/pin.sh b/pin.sh index 8b0354a..87d0ffd 100755 --- a/pin.sh +++ b/pin.sh @@ -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} \