From cd0ae2f041927a2b205ba950ce75625f974410b6 Mon Sep 17 00:00:00 2001 From: Blackyfff Date: Tue, 27 Jul 2021 01:48:18 +0200 Subject: [PATCH] Move Remote-ACL to config file Signed-off-by: Blackyfff --- etc/ffdns/community.conf | 2 ++ usr/lib/ffdns/update-public-acl.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) mode change 100755 => 100644 usr/lib/ffdns/update-public-acl.sh diff --git a/etc/ffdns/community.conf b/etc/ffdns/community.conf index b15cf98..9d7cb17 100644 --- a/etc/ffdns/community.conf +++ b/etc/ffdns/community.conf @@ -9,5 +9,7 @@ CommunitySubnets="10.50.0/16 10.83.0/16 fd43:5602:29bd::/48" ### master file in remote needs to be named: db.$CommunityDomain RemoteLocation="https://git.freifunk-franken.de/freifunk-franken/dns/raw/branch/master/" +RemoteACL="https://gw01.herpf.fff.community/ffdns/icvpn-acl.conf" + ### TTL Refresh Retry Expire Minimum TTLReReExMi="3600 2000 6400 2419200 86400" \ No newline at end of file diff --git a/usr/lib/ffdns/update-public-acl.sh b/usr/lib/ffdns/update-public-acl.sh old mode 100755 new mode 100644 index e1ca7fd..c825183 --- a/usr/lib/ffdns/update-public-acl.sh +++ b/usr/lib/ffdns/update-public-acl.sh @@ -15,7 +15,7 @@ rm -f "$IncludeFile" if [ -z "$Tables" ]; then # this is only a rude fallback and not recommended # create your own file on a gateway with the community routing tables and use this one - RemoteFile="$(curl -s -S -f "https://gw01.herpf.fff.community/ffdns/icvpn-acl.conf")" + RemoteFile="$(curl -s -S -f "$RemoteACL")" if [ -n "$RemoteFile" ]; then echo "$RemoteFile" > "$IncludeFile" fi