From 79dcabd4eb57a885b062f73dc9812256b2c57d3e Mon Sep 17 00:00:00 2001 From: James Walker Date: Mon, 6 Feb 2023 14:01:09 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20add=20--hidden?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit plus remove some debug --- pin.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pin.sh b/pin.sh index 87d0ffd..0d4ffb3 100755 --- a/pin.sh +++ b/pin.sh @@ -4,10 +4,6 @@ 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} \ @@ -16,12 +12,13 @@ root_cid=$(ipfs-cluster-ctl \ add \ --quieter \ --cid-version 1 \ - --name ${PLUGIN_DOMAIN} \ --recursive \ + --hidden \ --local \ + --name ${PLUGIN_DOMAIN} \ ${PLUGIN_EXTRA_ARGS} \ ${PLUGIN_PATH} ) || { - echo "ipfs-cluster-ctl --host ${HOST} --basic-auth *** ${PLUGIN_CLUSTER_ARGS} add --quieter --local --cid-version 1 --name ${PLUGIN_DOMAIN} --recursive ${PLUGIN_PATH}" 1>&2 + echo "ipfs-cluster-ctl --host ${HOST} --basic-auth *** ${PLUGIN_CLUSTER_ARGS} add --quieter --cid-version 1 --recursive --hidden --local --name ${PLUGIN_DOMAIN} ${PLUGIN_PATH}" 1>&2 echo "$root_cid" 1>&2 echo "Failed to pin to cluster" 1>&2 false