Release openresolv-3.5.2
[openresolv] / unbound.in
index 839a85944059e6bb5d62578159a7e046b678ac53..4ee0da7202633fac6d14dfa697495c648c274bab 100644 (file)
@@ -56,6 +56,13 @@ if [ -n "$NAMESERVERS" ]; then
        done
 fi
 
+# Try to ensure that config dirs exist
+if type config_mkdirs >/dev/null 2>&1; then
+       config_mkdirs "$unbound_conf"
+else
+       @PREFIX@/sbin/resolvconf -D "$unbound_conf"
+fi
+
 if [ ! -f "$unbound_conf" ] || \
        [ "$(cat "$unbound_conf")" != "$(printf %s "$newconf")" ]
 then