plus remove some debug
This commit is contained in:
		
							
								
								
									
										9
									
								
								pin.sh
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								pin.sh
									
									
									
									
									
								
							@@ -4,10 +4,6 @@ set -e
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
HOST=${PLUGIN_CLUSTER_HOST:-"/dns4/cluster.walkah.cloud"}
 | 
					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
 | 
					# pin to cluster
 | 
				
			||||||
root_cid=$(ipfs-cluster-ctl \
 | 
					root_cid=$(ipfs-cluster-ctl \
 | 
				
			||||||
    --host ${HOST} \
 | 
					    --host ${HOST} \
 | 
				
			||||||
@@ -16,12 +12,13 @@ root_cid=$(ipfs-cluster-ctl \
 | 
				
			|||||||
    add \
 | 
					    add \
 | 
				
			||||||
    --quieter \
 | 
					    --quieter \
 | 
				
			||||||
    --cid-version 1 \
 | 
					    --cid-version 1 \
 | 
				
			||||||
    --name ${PLUGIN_DOMAIN} \
 | 
					 | 
				
			||||||
    --recursive \
 | 
					    --recursive \
 | 
				
			||||||
 | 
					    --hidden \
 | 
				
			||||||
    --local \
 | 
					    --local \
 | 
				
			||||||
 | 
					    --name ${PLUGIN_DOMAIN} \
 | 
				
			||||||
    ${PLUGIN_EXTRA_ARGS} \
 | 
					    ${PLUGIN_EXTRA_ARGS} \
 | 
				
			||||||
    ${PLUGIN_PATH} ) || {
 | 
					    ${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 "$root_cid" 1>&2
 | 
				
			||||||
        echo "Failed to pin to cluster" 1>&2        
 | 
					        echo "Failed to pin to cluster" 1>&2        
 | 
				
			||||||
        false
 | 
					        false
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user