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:
parent
ea400ce405
commit
bd9f9c1ef7
@ -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
core/services/kopano-public-store.sh
Executable file
8
core/services/kopano-public-store.sh
Executable 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
8
core/services/kopano-users.sh
Executable 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
|
@ -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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user