Skip to content

Commit fd3a25f

Browse files
author
Rafał Warzycha
authored
Merge pull request #4 from senssei/bugfix/#3
Line endings bug
2 parents eef541d + b0e093f commit fd3a25f

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# mongo-cluster-docker
22

3-
This is a simple 3 node replica mongodb setup based on offcial `mongo` docker image using `docker-compose` described in my blogpost at https://warzycha.pl/mongo-db-sharding-docker-example/.
3+
This is a simple 3 node replica mongodb setup based on official `mongo` docker image using `docker-compose` described in my blogpost at https://warzycha.pl/mongo-db-sharding-docker-example/.
44

55
For details description, steps and discussion go to:
66

scripts/.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

scripts/init_shard.sh

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/bash
22

33
mongodb1=`ping -c 1 ${MONGOS} | head -1 | cut -d "(" -f 2 | cut -d ")" -f 1`
44

scripts/setup.sh

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/bash
22

33
mongodb1=`ping -c 1 ${MONGO1} | head -1 | cut -d "(" -f 2 | cut -d ")" -f 1`
44
mongodb2=`ping -c 1 ${MONGO2} | head -1 | cut -d "(" -f 2 | cut -d ")" -f 1`

scripts/setup_cnf.sh

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/bash
22

33
mongodb1=`ping -c 1 ${MONGO1} | head -1 | cut -d "(" -f 2 | cut -d ")" -f 1`
44
mongodb2=`ping -c 1 ${MONGO2} | head -1 | cut -d "(" -f 2 | cut -d ")" -f 1`

0 commit comments

Comments
 (0)