#/bin/bash VERSION=17.12 GREEN='\033[0;32m' NC='\033[0m' # No Color]]' docker images | grep -q "ejabberd/mix" || { echo -e "${GREEN}Pulling ejabberd build Docker image${NC}" docker pull ejabberd/mix } echo -e "${GREEN}Cloning ejabberd${NC}" if [ ! -d ejbuild ]; then git clone https://github.com/processone/ejabberd.git ejbuild fi (cd ejbuild; git checkout master && git pull && git checkout $VERSION) cat > ejbuild/vars.config <