1
0
mirror of https://github.com/zokradonh/kopano-docker.git synced 2026-08-11 16:32:59 +00:00

Merge pull request #21 from fbartels/dumb-init

add script for public folder creation and periodic user sync
This commit is contained in:
Felix Bartels
2018-11-12 15:30:13 +01:00
committed by GitHub
4 changed files with 19 additions and 0 deletions
+1
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", "--"]
+8
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
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
+2
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 \