1
0
mirror of https://github.com/zokradonh/kopano-docker synced 2025-06-06 15:36:40 +00:00
kopano-docker/web/wrapper.sh
Felix Bartels 045ca52d79
fallback to a hardcoded value in case FQDNCLEANED is not set (#443)
* fallback to a hardcoded value in case FQDNCLEANED is not set
* strip ports in kweb startup script
2020-09-15 11:29:41 +02:00

24 lines
428 B
Bash
Executable File

#!/bin/sh
set -e
# allow helper commands given by "docker-compose run"
if [ $# -gt 0 ]; then
exec "$@"
exit
fi
export CADDYPATH="$KOPANO_KWEB_ASSETS_PATH"
# remove ports from FQDN
export FQDN=${FQDN%:*}
# services need to be aware of the machine-id
if [ "$AUTOCONFIGURE" = true ]; then
dockerize \
-wait file:///etc/machine-id \
-wait file:///var/lib/dbus/machine-id
fi
exec "$EXE" caddy -conf /etc/kweb.cfg -agree