mirror of
https://github.com/zokradonh/kopano-docker
synced 2025-06-06 15:36:40 +00:00
* fallback to a hardcoded value in case FQDNCLEANED is not set * strip ports in kweb startup script
24 lines
428 B
Bash
Executable File
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
|