entrypoint.sh 394 B

12345678910111213141516
  1. #!/bin/sh
  2. cat << EOF > ~/env.yml
  3. define_macro:
  4. HOSTNAME: $HOSTNAME
  5. IP_ADDRESS: $IP_ADDRESS
  6. IRCDOMAIN:
  7. irc.$HOSTNAME:
  8. password: $IRCPASS
  9. WS_URL: "wss://$HOSTNAME:5443/ws"
  10. ACL_ORIGIN: "https://$HOSTNAME"
  11. PUT_URL: "https://$HOSTNAME:5443/upload"
  12. EOF
  13. cat ~/env.yml
  14. # Run ejabberdctl as done in the original entrypoint from the dockerfile
  15. /home/ejabberd/bin/ejabberdctl "$@"