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