Skip to content

Commit

Permalink
Same startup as 51zoo
Browse files Browse the repository at this point in the history
  • Loading branch information
solsson committed Jun 28, 2017
1 parent 4481b4d commit 07d895c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions zookeeper/50pzoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ spec:
value: "5555"
command:
- /bin/bash
- -c
- -euc
- >
set -e;
export ZOOKEEPER_SERVER_ID=$((${HOSTNAME##*-} + 1));
echo "${ZOOKEEPER_SERVER_ID:-1}" | tee /var/lib/zookeeper/data/myid;
sed -i "s/server\.$ZOOKEEPER_SERVER_ID\=[a-z0-9.-]*/server.$ZOOKEEPER_SERVER_ID=0.0.0.0/" config/zookeeper.properties;
Expand Down

0 comments on commit 07d895c

Please sign in to comment.