Skip to content

Commit

Permalink
migration: update DNS-Servers for interface DHCP
Browse files Browse the repository at this point in the history
The DNS-servers were updates upstream, so we do this for the current
Interface-configuration also.

backport of 932e287
  • Loading branch information
SvenRoederer committed Dec 20, 2018
1 parent d332954 commit 212db23
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,11 @@ r1_0_2_notunnel_macaddr() {
}


r1_0_2_update_dns_entry() {
log "updating DNS-servers for interface dhcp from profile"
uci set network.dhcp.dns="$(uci get "profile_$(uci get freifunk.community.name).interface.dns")"
}

migrate () {
log "Migrating from ${OLD_VERSION} to ${VERSION}."

Expand Down Expand Up @@ -462,6 +467,7 @@ migrate () {
if semverLT ${OLD_VERSION} "1.0.2"; then
r1_0_2_notunnel_ffuplink_ipXtable
r1_0_2_notunnel_macaddr
r1_0_2_update_dns_entry
guard "ffberlin_uplink"
fi

Expand Down

0 comments on commit 212db23

Please sign in to comment.