Project

General

Profile

« Previous | Next » 

Revision 8699

Add comments to bash script to explain its function and dependencies

View differences:

src/scripts/bash/replicaPolicies.sh
1
# sets the replication policy for all objects in the MN where the calling member node is the  authoritative member node.
2
# This code can easily be changed to replace $identifiers with a custom list of ids
3
# the $xml_path should point to a XML file with the replication policy to apply to all based on xmlns:d1="http://ns.dataone.org/service/types/v1" 
4
# 
5
# Dependencies:
6
#	xmlstarlet - developed with version 1.0.1
7
#	curl - developed with version 7.19.7
8

  
1 9
authoritativeMN="urn:node:mnDemo8"
2 10
MN_base_URL="https://mn-demo-8.test.dataone.org/knb/d1/mn/v1"
3 11
CN_base_URL="https://cn-dev.test.dataone.org/cn/v1"

Also available in: Unified diff