esl / mongooseim-docker

Apache License 2.0
27 stars 29 forks source link

Pattern Matching mistake #30

Closed ivanov-aleksander closed 4 years ago

ivanov-aleksander commented 4 years ago

The current pattern doesn't work for cluster more than 10 nodes. For example:

HOSTNAME_SHORT=mongooseim-12
echo ${HOSTNAME_SHORT%-?}

Returns mongooseim-12 instead of mongooseim My PR fix this issue.

michalwski commented 4 years ago

Good catch @ivanov-aleksander. Good to know there are people setting up that big MongooseIM clusters :)