1
0
mirror of https://github.com/zokradonh/kopano-docker.git synced 2026-08-23 22:32:52 +00:00

Run all containers read-only (#314)

* switch containers in compose file to read-only
related to https://github.com/zokradonh/kopano-docker/issues/310
* make scheduler container read-only
* make meet container read-only
* fix konnect for read-only
* make core mostly read-only
* add custom location for ldap.cfg to default config
* sort config option for readability
* update makefile pull workaround
* make kdav read-only
* remove locale generation code from core startup
* fix commander tests
* fix store language tests
* add test for a dutch mailbox
* make it possible to run webapp read-only
* add locale hint to the compose file
* finish read-only mode for z-push
This commit is contained in:
Felix Bartels
2020-01-14 14:31:53 +01:00
committed by GitHub
parent 5a4335998d
commit 70e9940b38
26 changed files with 220 additions and 147 deletions
+5 -5
View File
@@ -2,7 +2,7 @@
set -eo pipefail
cronfile=/etc/crontab
cronfile=/tmp/crontab
# purge existing entries from crontab
true > "$cronfile"
@@ -15,7 +15,7 @@ done
for cronvar in ${!CRONDELAYED_*}; do
cronvalue=${!cronvar}
echo "Adding $cronvalue to crontab"
echo "Adding $cronvalue to crontab (delayed)"
echo "$cronvalue" >> "$cronfile"
done
@@ -26,7 +26,7 @@ dockerize \
echo "creating public store"
docker exec kopano_server kopano-storeadm -h default: -P || true
# run sheduled cron jobs once
echo "Running sheduled cron jobs once"
for cronvar in ${!CRON_*}; do
cronvalue=${!cronvar}
croncommand=$(echo "$cronvalue" | cut -d ' ' -f 6-)
@@ -34,5 +34,5 @@ for cronvar in ${!CRON_*}; do
$croncommand
done
supercronic -test /etc/crontab
exec supercronic /etc/crontab
supercronic -test $cronfile
exec supercronic $cronfile