mirror of
https://github.com/zokradonh/kopano-docker
synced 2025-06-22 07:16:10 +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:
commit
7493674d9d
@ -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