Commit acc23ede by wutong

CD/CI

parent f7dc2b01
...@@ -25,10 +25,6 @@ if [[ ! -f "$ZOO_CONF_DIR/zoo.cfg" ]]; then ...@@ -25,10 +25,6 @@ if [[ ! -f "$ZOO_CONF_DIR/zoo.cfg" ]]; then
echo "autopurge.purgeInterval=$ZOO_AUTOPURGE_PURGEINTERVAL" >> "$CONFIG" echo "autopurge.purgeInterval=$ZOO_AUTOPURGE_PURGEINTERVAL" >> "$CONFIG"
echo "maxClientCnxns=$ZOO_MAX_CLIENT_CNXNS" >> "$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 for server in $ZOO_SERVERS; do
echo "$server" >> "$CONFIG" echo "$server" >> "$CONFIG"
done done
...@@ -36,7 +32,7 @@ fi ...@@ -36,7 +32,7 @@ fi
# Write myid only if it doesn't exist # Write myid only if it doesn't exist
if [[ ! -f "$ZOO_DATA_DIR/myid" ]]; then if [[ ! -f "$ZOO_DATA_DIR/myid" ]]; then
echo "${ZOO_MY_ID:2}" > "$ZOO_DATA_DIR/myid" echo "${ZOO_MY_ID:-1}" > "$ZOO_DATA_DIR/myid"
fi fi
exec "$@" 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