annotate scripts/nameserver_autogen/bind_tld_zonefile_all.sh @ 1230:24c17a3904b9 draft

Revert "dropped the use of @ so the generated zones would work with yadifa too. also exported env vars so child of bind_tld_zonefile_all.sh can use them" This reverts commit ab834161696a4f9150d1c8f52bb6f0f453950cb7.
author epoch <epoch@hack.thebackupbox.net>
date Wed, 10 Jul 2019 01:12:59 +0000
parents 4e07b815084b
children c842697ded21
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1199
dfda92fd4ec3 rewrite bind tld zonefile generators
cathugger <cathugger@cock.li>
parents: 1191
diff changeset
1 #!/bin/sh
dfda92fd4ec3 rewrite bind tld zonefile generators
cathugger <cathugger@cock.li>
parents: 1191
diff changeset
2 # be sure to set these variables first.
1230
24c17a3904b9 Revert "dropped the use of @ so the generated zones would work with yadifa too. also exported env vars so child of bind_tld_zonefile_all.sh can use them"
epoch <epoch@hack.thebackupbox.net>
parents: 1226
diff changeset
3 #ANO_ZONEFILE=/etc/namedb/ano
24c17a3904b9 Revert "dropped the use of @ so the generated zones would work with yadifa too. also exported env vars so child of bind_tld_zonefile_all.sh can use them"
epoch <epoch@hack.thebackupbox.net>
parents: 1226
diff changeset
4 #RDNS_ZONEFILE=/etc/namedb/21.in-addr.arpa
24c17a3904b9 Revert "dropped the use of @ so the generated zones would work with yadifa too. also exported env vars so child of bind_tld_zonefile_all.sh can use them"
epoch <epoch@hack.thebackupbox.net>
parents: 1226
diff changeset
5 #RESDB_PATH=/services/resdb/resdb
1199
dfda92fd4ec3 rewrite bind tld zonefile generators
cathugger <cathugger@cock.li>
parents: 1191
diff changeset
6 if [ ! "$ANO_ZONEFILE" ];then
dfda92fd4ec3 rewrite bind tld zonefile generators
cathugger <cathugger@cock.li>
parents: 1191
diff changeset
7 echo "You forgot to set some variables. read the source plzkthx." >&2
dfda92fd4ec3 rewrite bind tld zonefile generators
cathugger <cathugger@cock.li>
parents: 1191
diff changeset
8 exit 1
1170
44da84ec0c43 forked bind_told_zonefile.sh to do all TLDs in resdb instead of just ano.
epoch <epoch@hacking.allowed.ano>
parents:
diff changeset
9 fi
1199
dfda92fd4ec3 rewrite bind tld zonefile generators
cathugger <cathugger@cock.li>
parents: 1191
diff changeset
10 # compat
dfda92fd4ec3 rewrite bind tld zonefile generators
cathugger <cathugger@cock.li>
parents: 1191
diff changeset
11 export ZONEFILE_DIR=`dirname $RDNS_ZONEFILE`
dfda92fd4ec3 rewrite bind tld zonefile generators
cathugger <cathugger@cock.li>
parents: 1191
diff changeset
12 TLDS='!' `dirname $0`/bind_tld_zonefile.sh
dfda92fd4ec3 rewrite bind tld zonefile generators
cathugger <cathugger@cock.li>
parents: 1191
diff changeset
13 export ZONEFILE_DIR=`dirname $ANO_ZONEFILE`
dfda92fd4ec3 rewrite bind tld zonefile generators
cathugger <cathugger@cock.li>
parents: 1191
diff changeset
14 RDNS_PREFIX='!' TLDS='*' `dirname $0`/bind_tld_zonefile.sh