🐛 add --hidden
All checks were successful
continuous-integration/drone/push Build is passing

plus remove some debug
This commit is contained in:
James Walker 2023-02-06 14:01:09 -05:00
parent 0fc5ba6a62
commit 79dcabd4eb
Signed by: walkah
GPG Key ID: 3C127179D6086E93

9
pin.sh
View File

@ -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