aboutsummaryrefslogtreecommitdiffstats
path: root/main/unbound/migrate-dnscache-to-unbound
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-10-03 09:45:31 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-10-03 09:47:47 +0000
commitb1c9c64d2babe0f942f7bef17cd2a1996a851a77 (patch)
tree34542847eb8401ea370757106c1531f8c1098e39 /main/unbound/migrate-dnscache-to-unbound
parentf388b61eec6e05cef8544aa73ae4850fe55b3114 (diff)
downloadaports-b1c9c64d2babe0f942f7bef17cd2a1996a851a77.tar.bz2
aports-b1c9c64d2babe0f942f7bef17cd2a1996a851a77.tar.xz
main/unbound: migrate: skip .apk-new files
Diffstat (limited to 'main/unbound/migrate-dnscache-to-unbound')
-rw-r--r--main/unbound/migrate-dnscache-to-unbound6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/unbound/migrate-dnscache-to-unbound b/main/unbound/migrate-dnscache-to-unbound
index 4fbb875fbe..babbcd4d18 100644
--- a/main/unbound/migrate-dnscache-to-unbound
+++ b/main/unbound/migrate-dnscache-to-unbound
@@ -32,9 +32,9 @@ gen_config() {
fi
for zonefile in "$root"/etc/dnscache/servers/*; do
local zone=${zonefile##*/}
- if [ "$zone" = "@" ] || [ "$zone" = '*' ]; then
- continue
- fi
+ case "$zone" in
+ '@'|'*'|*.apk-new) continue;;
+ esac
echo "${fwdtype}-zone:"
echo -e "\tname: ${zone}"
for ip in $(cat $zonefile); do