larra/.devcontainer/post_create_config.sh

18 lines
651 B
Bash
Raw Permalink Normal View History

sleep 5
2024-10-21 11:21:26 +00:00
sudo chmod -R a+x /home/tools/
sudo chown -R dev /home/tools/
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
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
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"