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
|
# start regular service
|
||||||
case "$SERVICE_TO_START" in
|
case "$SERVICE_TO_START" in
|
||||||
server)
|
server)
|
||||||
# TODO the until loop needs to be extended for the other services and certificates
|
# TODO 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
|
dockerize \
|
||||||
echo "waiting for $KCCONF_SERVER_SERVER_SSL_KEY_FILE & $KCCONF_SERVER_SERVER_SSL_CA_FILE"| ts
|
-wait file://$KCCONF_SERVER_SERVER_SSL_CA_FILE \
|
||||||
sleep 5
|
-wait file://$KCCONF_SERVER_SERVER_SSL_KEY_FILE \
|
||||||
done
|
-wait tcp://db:3306 \
|
||||||
dockerize -wait tcp://db:3306
|
-timeout 360s
|
||||||
exec /usr/sbin/kopano-server -F
|
exec /usr/sbin/kopano-server -F
|
||||||
;;
|
;;
|
||||||
dagent)
|
dagent)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user