annotate scripts/nameserver_autogen/bind_tld_zonefile_all.sh @ 1226:4e07b815084b draft

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
author epoch <epoch@hack.thebackupbox.net>
date Wed, 01 May 2019 17:47:33 +0000
parents dfda92fd4ec3
children 24c17a3904b9
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.
1226
4e07b815084b 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: 1199
diff changeset
3 #export ANO_ZONEFILE=/etc/namedb/ano
4e07b815084b 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: 1199
diff changeset
4 #export RDNS_ZONEFILE=/etc/namedb/21.in-addr.arpa
4e07b815084b 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: 1199
diff changeset
5 #export 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