mirror of
https://github.com/zokradonh/kopano-docker
synced 2025-06-25 16:56:38 +00:00
reolace until loop with dockerize as well
Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
parent
92b6e0da10
commit
6773927116
@ -30,12 +30,12 @@ fi
|
||||
# start regular service
|
||||
case "$SERVICE_TO_START" in
|
||||
server)
|
||||
# TODO the until loop needs to be extended for the other services and certificates
|
||||
until [[ -f $KCCONF_SERVER_SERVER_SSL_KEY_FILE && -f $KCCONF_SERVER_SERVER_SSL_CA_FILE ]]; do
|
||||
echo "waiting for $KCCONF_SERVER_SERVER_SSL_KEY_FILE & $KCCONF_SERVER_SERVER_SSL_CA_FILE"| ts
|
||||
sleep 5
|
||||
done
|
||||
dockerize -wait tcp://db:3306
|
||||
# TODO needs to be extended for the other services and certificates
|
||||
dockerize \
|
||||
-wait file://$KCCONF_SERVER_SERVER_SSL_CA_FILE \
|
||||
-wait file://$KCCONF_SERVER_SERVER_SSL_KEY_FILE \
|
||||
-wait tcp://db:3306 \
|
||||
-timeout 360s
|
||||
exec /usr/sbin/kopano-server -F
|
||||
;;
|
||||
dagent)
|
||||
|
Loading…
x
Reference in New Issue
Block a user