comparison configure @ 622:fd1945470e54 draft

added nameserver_autogen for root nameserver
author Nick <nick@somerandomnick.ano>
date Mon, 26 Sep 2011 16:30:17 +0000
parents 2f379a0b6461
children f0b58a1a7afd
comparison
equal deleted inserted replaced
621:dab670ad6e31 622:fd1945470e54
1 #!/bin/sh 1 #!/bin/sh
2 2
3 vars="gitd_ip gitd_basepath git_name git_email tinydns_config tinydns__tldsrvrname tinydns__tldsrvrip" 3 vars="gitd_ip gitd_basepath git_name git_email tinydns_config tinydns__rootsrvrname tinydns__rootsrvrip tinydns__tldsrvrname tinydns__tldsrvrip"
4 4
5 echo "Welcome to the resdb configurator!" >&2 5 echo "Welcome to the resdb configurator!" >&2
6 echo >&2 6 echo >&2
7 7
8 for var in $vars ; do 8 for var in $vars ; do
17 if [ x"$git_email" = x ]; then 17 if [ x"$git_email" = x ]; then
18 git_email="nobody@nowhere" 18 git_email="nobody@nowhere"
19 fi 19 fi
20 if [ x"$tinydns_config" = x ]; then 20 if [ x"$tinydns_config" = x ]; then
21 tinydns_config=n 21 tinydns_config=n
22 fi
23 if [ x"$tinydns__rootsrvrname" = x ]; then
24 tinydns__rootsrvrname="uz5hn5hz5x5bp09p5z2806x4gngcw1k5j2wk88fuvkth5pp2hw4t2d.rootns.somerandomnick.ano"
25 fi
26 if [ x"$tinydns__rootsrvrip" = x ]; then
27 tinydns__rootsrvrip="1.0.27.39"
22 fi 28 fi
23 if [ x"$tinydns__tldsrvrname" = x ]; then 29 if [ x"$tinydns__tldsrvrname" = x ]; then
24 tinydns__tldsrvrname="uz5fvb7zdqyuz4q8ysjdfuf04kzd2lrt0l6fp4uyguxdg5tfut06ck.anons.somerandomnick.ano" 30 tinydns__tldsrvrname="uz5fvb7zdqyuz4q8ysjdfuf04kzd2lrt0l6fp4uyguxdg5tfut06ck.anons.somerandomnick.ano"
25 fi 31 fi
26 if [ x"$tinydns__tldsrvrip" = x ]; then 32 if [ x"$tinydns__tldsrvrip" = x ]; then
63 read new_tinydns_config 69 read new_tinydns_config
64 if [ x"$new_tinydns_config" != x ]; then 70 if [ x"$new_tinydns_config" != x ]; then
65 tinydns_config="$new_tinydns_config" 71 tinydns_config="$new_tinydns_config"
66 fi 72 fi
67 if [ x"$tinydns_config" = xy ]; then 73 if [ x"$tinydns_config" = xy ]; then
74 echo "Please enter the hostname of your root nameserver." >&2
75 echo "(Default: $tinydns__rootsrvrname)" >&2
76 echo -n "RootSrvName? " >&2
77 read new_tinydns__rootsrvrname
78 if [ x"$new_tinydns__rootsrvrname" != x ]; then
79 tinydns__rootsrvrname="$new_tinydns__rootsrvrname"
80 fi
81
82 echo "Please enter the IP address of your root nameserver." >&2
83 echo "(Default: $tinydns__rootsrvrip)" >&2
84 echo -n "RootSrvIP? " >&2
85 read new_tinydns__rootsrvrip
86 if [ x"$new_tinydns__rootsrvrip" != x ]; then
87 tinydns__rootsrvrip="$new_tinydns__rootsrvrip"
88 fi
89
68 echo "Please enter the hostname of your .ano TLD server." >&2 90 echo "Please enter the hostname of your .ano TLD server." >&2
69 echo "(Default: $tinydns__tldsrvrname)" >&2 91 echo "(Default: $tinydns__tldsrvrname)" >&2
70 echo -n "TLDSrvName? " >&2 92 echo -n "TLDSrvName? " >&2
71 read new_tinydns__tldsrvrname 93 read new_tinydns__tldsrvrname
72 if [ x"$new_tinydns__tldsrvrname" != x ]; then 94 if [ x"$new_tinydns__tldsrvrname" != x ]; then