ldap: avoid unnecessary copy

This commit is contained in:
Saúl Ibarra Corretgé 2020-04-15 12:03:25 +02:00
parent e1b47db31d
commit 7aa2d8114c
1 changed files with 1 additions and 5 deletions

View File

@ -1,11 +1,7 @@
#!/usr/bin/with-contenv bash
if [[ ! -f /config/saslauthd.conf ]]; then
cp /defaults/saslauthd.conf /config/
fi
if [[ ! -f /etc/saslauthd.conf ]]; then
tpl /config/saslauthd.conf > /etc/saslauthd.conf
tpl /defaults/saslauthd.conf > /etc/saslauthd.conf
mkdir -pm777 /var/run/saslauthd
adduser prosody sasl
echo >> /etc/ldap/ldap.conf "TLS_REQCERT allow"