瀏覽代碼

ldap: avoid unnecessary copy

Saúl Ibarra Corretgé 5 年之前
父節點
當前提交
7aa2d81
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      prosody/rootfs/etc/cont-init.d/10-config

+ 1 - 5
prosody/rootfs/etc/cont-init.d/10-config

@@ -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"