mirror of
https://github.com/zokradonh/kopano-docker.git
synced 2026-08-23 14:22:54 +00:00
core-start-service: make the grapi ldap-backend usable (#227)
* core-start-service: make the grapi ldap-backend usable * fix startup script for kopano grapi backend
This commit is contained in:
committed by
Felix Bartels
parent
1c4b520b53
commit
db63ee39cb
+11
-1
@@ -84,9 +84,19 @@ grapi)
|
||||
export socket_path=/var/run/kopano/grapi
|
||||
mkdir -p "$socket_path"
|
||||
chown -R kapi:kopano "$socket_path"
|
||||
# TODO there could be a case where multiple backends are desired
|
||||
case $GRAPI_BACKEND in
|
||||
ldap)
|
||||
export LDAP_URI="${KCCONF_GRAPI_LDAP_URI}"
|
||||
export LDAP_BASEDN="${KCCONF_GRAPI_LDAP_BASEDN}"
|
||||
export LDAP_BINDDN="${KCCONF_GRAPI_LDAP_BINDDN}"
|
||||
bindpw="$(cat "${KCCONF_GRAPI_LDAP_BINDPW_FILE}")"
|
||||
export LDAP_BINDPW="${bindpw}"
|
||||
;;
|
||||
esac
|
||||
# cleaning up env variables
|
||||
unset "${!KCCONF_@}"
|
||||
exec kopano-grapi serve
|
||||
exec kopano-grapi serve --backend="$GRAPI_BACKEND"
|
||||
;;
|
||||
kapi)
|
||||
if [ "$KCCONF_KAPID_INSECURE" = "yes" ]; then
|
||||
|
||||
Reference in New Issue
Block a user