Commit cd89e2ad by wutong

CD/CI

parent edc31e98
......@@ -25,6 +25,10 @@ if [[ ! -f "$ZOO_CONF_DIR/zoo.cfg" ]]; then
echo "autopurge.purgeInterval=$ZOO_AUTOPURGE_PURGEINTERVAL" >> "$CONFIG"
echo "maxClientCnxns=$ZOO_MAX_CLIENT_CNXNS" >> "$CONFIG"
echo "server.1=172.31.255.8:2888:3888" >> "$CONFIG"
echo "server.2=172.31.255.222:2888:3888" >> "$CONFIG"
echo "server.3=172.31.255.219:2888:3888" >> "$CONFIG"
for server in $ZOO_SERVERS; do
echo "$server" >> "$CONFIG"
done
......@@ -32,7 +36,7 @@ fi
# Write myid only if it doesn't exist
if [[ ! -f "$ZOO_DATA_DIR/myid" ]]; then
echo "${ZOO_MY_ID:-1}" > "$ZOO_DATA_DIR/myid"
echo "${ZOO_MY_ID:1}" > "$ZOO_DATA_DIR/myid"
fi
exec "$@"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment