1
0
mirror of https://github.com/zokradonh/kopano-docker synced 2025-07-23 01:45:37 +00:00

add script for public folder creation and periodic user sync

Fixes: https://github.com/zokradonh/kopano-docker/issues/15

Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
Felix Bartels 2018-11-11 21:42:02 +01:00
parent ea400ce405
commit bd9f9c1ef7
4 changed files with 19 additions and 0 deletions

View File

@ -42,6 +42,7 @@ ENV LANG=en_US.UTF-8
ENV SERVICE_TO_START=server
COPY kcconf.py defaultconfigs/ start-service.sh /kopano/
COPY services /kopano/services
ENTRYPOINT ["/usr/bin/dumb-init", "--"]

View File

@ -0,0 +1,8 @@
#!/bin/bash
set -eo pipefail
exec dockerize \
-wait tcp://localhost:236 \
-timeout 360s \
kopano-storeadm -h default: -P

8
core/services/kopano-users.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
set -eo pipefail
dockerize \
-wait tcp://localhost:236 \
-timeout 360s
while true; do kopano-cli --sync && sleep 3600; done

View File

@ -36,6 +36,8 @@ fi
# start regular service
case "$SERVICE_TO_START" in
server)
/kopano/services/kopano-public-store.sh &
/kopano/services/kopano-users.sh &
exec dockerize \
-wait file://$KCCONF_SERVER_SERVER_SSL_CA_FILE \
-wait file://$KCCONF_SERVER_SERVER_SSL_KEY_FILE \