Skip to content

Commit

Permalink
Fixes start from empty volume
Browse files Browse the repository at this point in the history
  • Loading branch information
solsson committed Dec 2, 2018
1 parent b936c84 commit e55d817
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zookeeper/10zookeeper-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ data:
#!/bin/bash
set -x
[ -d /var/lib/zookeeper/data ] || mkdir /var/lib/zookeeper/data
[ -z "$ID_OFFSET" ] && ID_OFFSET=1
export ZOOKEEPER_SERVER_ID=$((${HOSTNAME##*-} + $ID_OFFSET))
echo "${ZOOKEEPER_SERVER_ID:-1}" | tee /var/lib/zookeeper/data/myid
Expand Down

0 comments on commit e55d817

Please sign in to comment.