2024-09-25 16:16:34 +00:00
|
|
|
sleep 1
|
|
|
|
|
2024-09-28 19:15:31 +00:00
|
|
|
# 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
|
|
|
|
|
2024-09-25 16:16:34 +00:00
|
|
|
printf "\n\n\tConfigure ejabber server\n\n"
|
2024-09-28 19:15:31 +00:00
|
|
|
# sudo docker exec -it ejabberd ejabberdctl register user localhost password
|
2024-09-25 16:16:34 +00:00
|
|
|
|
|
|
|
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"
|