sleep 5 # Check that ejabberd server started successfully red='\e[1;31m' off='\e[0m' if [ "$( sudo docker container inspect -f '{{.State.Status}}' ejabberd )" != "running" ]; then printf "\n\n\t$red ERROR: ejabberd container is not running! $off Stop vscode dev environment \n\n\n\n"; exit 1; fi printf "\n\n\tConfigure ejabber server\n\n" # sudo docker exec -it ejabberd ejabberdctl register user localhost password printf "\n\n\tList of registered users:\n" sudo docker exec -it ejabberd ejabberdctl registered_users localhost printf "\n\n\tConfigurating ejabber server ended\n\n"