Commit 304d87dd authored by Jan Pavlinec's avatar Jan Pavlinec

resolver-conf: add convert for unbound remote control

parent b5527cac
......@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=resolver-conf
PKG_VERSION:=0.0.1
PKG_RELEASE:=11
PKG_RELEASE:=12
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
......
......@@ -12,10 +12,13 @@ get_kresd_dd() {
}
# convert resolver.kresd.dynamic_domain => resolver.common.dynamic_domain
# and set config for unbound-control
dd_val=$(uci get resolver.common.dynamic_domains)
if [ $? -eq 1 ] && [ ! -f /etc/resolver/dd_converted ]; then
echo uci set resolver.common.dynamic_domains=$(get_kresd_dd)
uci set resolver.common.dynamic_domains=$(get_kresd_dd)
uci set resolver.unbound_remote_control.control_enable='yes'
uci set resolver.unbound_remote_control.control_use_cert='no'
uci commit resolver
touch /etc/resolver/dd_converted
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment