feat(ldap): Start and configure only if enabled.

This commit is contained in:
damencho
2024-09-24 11:31:43 -05:00
committed by Дамян Минков
parent ceb4a51a1e
commit 1db83edb25
2 changed files with 8 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/with-contenv bash
if [[ ! -f /etc/saslauthd.conf ]]; then
if [[ ! -f /etc/saslauthd.conf ]] && [[ "$AUTH_TYPE" == "ldap" ]]; then
tpl /defaults/saslauthd.conf > /etc/saslauthd.conf
mkdir -pm777 /var/run/saslauthd
adduser prosody sasl