diff --git a/data/hooks/conf_regen/06-slapd b/data/hooks/conf_regen/06-slapd index 63cffac2..b5af2353 100644 --- a/data/hooks/conf_regen/06-slapd +++ b/data/hooks/conf_regen/06-slapd @@ -46,7 +46,7 @@ sudo mkdir /etc/ldap/slapd.d sudo chown -R openldap:openldap /etc/ldap/schema/ sudo chown -R openldap:openldap /etc/ldap/slapd.d/ -sudo slaptest -f /etc/ldap/slapd.conf -F /etc/ldap/slapd.d/ +sudo slaptest -f /etc/ldap/slapd.conf -F /etc/ldap/slapd.d/ 2>&1 sudo chown -R openldap:openldap /etc/ldap/slapd.d/ sudo service slapd force-reload diff --git a/data/hooks/conf_regen/43-dnsmasq b/data/hooks/conf_regen/43-dnsmasq index 821bfa39..4ce4ea6d 100644 --- a/data/hooks/conf_regen/43-dnsmasq +++ b/data/hooks/conf_regen/43-dnsmasq @@ -16,7 +16,7 @@ function safe_copy () { cd /usr/share/yunohost/templates/dnsmasq # Get IP address -ip=$(curl ip.yunohost.org || echo '0.0.0.0') +ip=$(curl ip.yunohost.org 2>/dev/null || echo '0.0.0.0') # Get IPv6 IP address ipv6=$(ip route get 2000:: | grep -q "unreachable" && echo '' \