ldap: avoid unnecessary copy

pull/460/head
Saúl Ibarra Corretgé 5 years ago
parent e1b47db31d
commit 7aa2d8114c
  1. 6
      prosody/rootfs/etc/cont-init.d/10-config

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

Loading…
Cancel
Save