seafile-containerized/seafile-caddy/scripts/start.sh
Gerrit Gogel 94d3ed3e9e seafile-caddy: improved lifecycle management
Exits container if caddy service exits.
2024-02-14 10:56:35 +01:00

11 lines
157 B
Bash

#!/bin/bash
if [ "$SWARM_DNS" = true ]; then
/scripts/swarm-dns.sh &
fi
caddy run --config /etc/caddy/Caddyfile --adapter caddyfile &
wait -n
exit $?