Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ "$ClusterName" == "$MongodbCluster1" ]
- then
- /bin/aws s3 cp s3://templates/mongodb/mongoactivenode.js /bin
- /bin/aws s3 cp s3://templates/mongodb/replicasetstatus.sh /bin
- chmod 777 /bin/replicasetstatus.sh
- chmod 777 /bin/mongoactivenode.js
- echo '*/1 * * * * cd /bin/ && sudo /usr/bin/sh /bin/replicasetstatus.sh'
- else
- echo "Cannot be performed on secondary"
- fi
- exit 0
Add Comment
Please, Sign In to add comment