From 8948001058cff98190d0a94560d33b3692c2636f Mon Sep 17 00:00:00 2001 From: msbt Date: Mon, 12 Feb 2018 16:52:43 +0100 Subject: [PATCH] Fixed LDAP url --- start_matrix.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/start_matrix.sh b/start_matrix.sh index a5cad36..5719569 100755 --- a/start_matrix.sh +++ b/start_matrix.sh @@ -32,7 +32,7 @@ if [[ ! -d /app/data/synapse ]]; then sed -i 's/# - module: "ldap_auth_provider.LdapAuthProvider"/ - module: "ldap_auth_provider.LdapAuthProvider"/' homeserver.yaml sed -i 's/# config:/ config:/' homeserver.yaml sed -i 's/# enabled: true/ enabled: true/' homeserver.yaml - sed -i "s,# uri: .*, uri: \"${LDAP_URL}\",' homeserver.yaml + sed -i "s,# uri: .*, uri: \"${LDAP_URL}\"," homeserver.yaml sed -i 's/# start_tls: true/ start_tls: false/' homeserver.yaml sed -i 's/# base: "ou=users,dc=example,dc=com"/ base: "ou=users,dc=cloudron"/' homeserver.yaml sed -i 's/# attributes:/ attributes:/' homeserver.yaml @@ -98,7 +98,8 @@ gosu www-data turnserver -c /app/data/turnserver.conf --daemon -v sed -i "s/ user: .*/ user: ${POSTGRESQL_USERNAME}/" homeserver.yaml sed -i "s/ password: .*/ password: ${POSTGRESQL_PASSWORD}/" homeserver.yaml sed -i "s/ database: .*/ database: ${POSTGRESQL_DATABASE}/" homeserver.yaml -sed -i "s, uri: .*, uri: \"${LDAP_URL}\"," homeserver.yaml +sed -i "s,# uri: .*, uri: \"${LDAP_URL}\"," homeserver.yaml + gosu www-data python -m synapse.app.homeserver --config-path homeserver.yaml &> /dev/null &