From 0fc5ba6a627bd69c05eda9efd092091adbc28899 Mon Sep 17 00:00:00 2001 From: James Walker Date: Sun, 5 Feb 2023 21:13:47 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8A=20add=20debug=20option?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pin.sh | 4 ++++ 1 file changed, 4 insertions(+) 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} \