[SOGo] Added hooks support for SOGo image (#4181)

Signed-off-by: Kristian Feldsam <feldsam@gmail.com>
master
Kristian Feldsam 2021-07-28 21:41:44 +02:00 committed by GitHub
parent 773383cacd
commit 6ec2a0a97d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 5 deletions

12
.gitignore vendored
View File

@ -1,6 +1,7 @@
!data/conf/nginx/dynmaps.conf !data/conf/nginx/dynmaps.conf
!data/conf/nginx/meta_exporter.conf !data/conf/nginx/meta_exporter.conf
!data/conf/nginx/site.conf !data/conf/nginx/site.conf
!/**/.gitkeep
*.iml *.iml
.idea .idea
.vscode/* .vscode/*
@ -44,11 +45,12 @@ data/conf/sogo/sieve.creds
data/conf/sogo/sogo-full.svg data/conf/sogo/sogo-full.svg
data/gitea/ data/gitea/
data/gogs/ data/gogs/
data/hooks/dovecot data/hooks/dovecot/*
data/hooks/phpfpm data/hooks/phpfpm/*
data/hooks/postfix data/hooks/postfix/*
data/hooks/rspamd data/hooks/rspamd/*
data/hooks/unbound data/hooks/sogo/*
data/hooks/unbound/*
data/web/.well-known/acme-challenge data/web/.well-known/acme-challenge
data/web/css/build/0081-custom-mailcow.css data/web/css/build/0081-custom-mailcow.css
data/web/inc/vars.local.inc.php data/web/inc/vars.local.inc.php

View File

@ -10,4 +10,12 @@ if [[ ! -z ${REDIS_SLAVEOF_IP} ]]; then
cp /etc/syslog-ng/syslog-ng-redis_slave.conf /etc/syslog-ng/syslog-ng.conf cp /etc/syslog-ng/syslog-ng-redis_slave.conf /etc/syslog-ng/syslog-ng.conf
fi fi
# Run hooks
for file in /hooks/*; do
if [ -x "${file}" ]; then
echo "Running hook ${file}"
"${file}"
fi
done
exec "$@" exec "$@"

View File

View File

@ -181,6 +181,7 @@ services:
dns: dns:
- ${IPV4_NETWORK:-172.22.1}.254 - ${IPV4_NETWORK:-172.22.1}.254
volumes: volumes:
- ./data/hooks/sogo:/hooks:Z
- ./data/conf/sogo/:/etc/sogo/:z - ./data/conf/sogo/:/etc/sogo/:z
- ./data/web/inc/init_db.inc.php:/init_db.inc.php:Z - ./data/web/inc/init_db.inc.php:/init_db.inc.php:Z
- ./data/conf/sogo/custom-favicon.ico:/usr/lib/GNUstep/SOGo/WebServerResources/img/sogo.ico:z - ./data/conf/sogo/custom-favicon.ico:/usr/lib/GNUstep/SOGo/WebServerResources/img/sogo.ico:z