docker: update following name changes:
`backend_e2e` now print properly backend logs
This commit is contained in:
parent
19da80743b
commit
363788de7d
1 changed files with 295 additions and 288 deletions
15
docker/prosody-e2e/entrypoint.sh
Normal file
15
docker/prosody-e2e/entrypoint.sh
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
usermod -u "$(stat -c %u /var/lib/prosody/.)" prosody
|
||||
|
||||
if [[ "$1" != "prosody" ]]; then
|
||||
exec prosodyctl "$@"
|
||||
exit 0;
|
||||
fi
|
||||
|
||||
if [ "$LOCAL" -a "$PASSWORD" -a "$DOMAIN" ] ; then
|
||||
prosodyctl register "$LOCAL" "$DOMAIN" "$PASSWORD"
|
||||
fi
|
||||
|
||||
exec runuser -u prosody -- "$@"
|
||||
Loading…
Reference in a new issue