comparison configure @ 799:f0b58a1a7afd draft

Now ./configure tries to help for peer2anonet --configure-dns :-)
author Nick <nick@somerandomnick.ano>
date Tue, 29 Nov 2011 03:08:57 +0000
parents fd1945470e54
children f1f0ab9d41b7
comparison
equal deleted inserted replaced
798:4a4ba4a2061d 799:f0b58a1a7afd
1 #!/bin/sh 1 #!/bin/sh
2 2
3 vars="gitd_ip gitd_basepath git_name git_email tinydns_config tinydns__rootsrvrname tinydns__rootsrvrip tinydns__tldsrvrname tinydns__tldsrvrip" 3 vars="gitd_ip gitd_basepath git_name git_email tinydns_config tinydns__rootsrvrname tinydns__rootsrvrip tinydns__tldsrvrname tinydns__tldsrvrip tinydns__srvrip tinydns__srvrname"
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
29 if [ x"$tinydns__tldsrvrname" = x ]; then 29 if [ x"$tinydns__tldsrvrname" = x ]; then
30 tinydns__tldsrvrname="uz5fvb7zdqyuz4q8ysjdfuf04kzd2lrt0l6fp4uyguxdg5tfut06ck.anons.somerandomnick.ano" 30 tinydns__tldsrvrname="uz5fvb7zdqyuz4q8ysjdfuf04kzd2lrt0l6fp4uyguxdg5tfut06ck.anons.somerandomnick.ano"
31 fi 31 fi
32 if [ x"$tinydns__tldsrvrip" = x ]; then 32 if [ x"$tinydns__tldsrvrip" = x ]; then
33 tinydns__tldsrvrip="1.0.27.37" 33 tinydns__tldsrvrip="1.0.27.37"
34 fi
35 if [ x"$tinydns__srvrname" = x ]; then
36 tinydns__srvrname="uz5z6spsd4jsd2k984wuzknr13gwjc630gmvtcv4bmpsrb04c179h1.ns.somerandomnick.ano"
37 fi
38 if [ x"$tinydns__srvrip" = x ]; then
39 tinydns__srvrip="1.0.27.86"
34 fi 40 fi
35 41
36 echo "Please enter the IP address you'd like gitd to listen on." >&2 42 echo "Please enter the IP address you'd like gitd to listen on." >&2
37 echo "(Default: $gitd_ip)" >&2 43 echo "(Default: $gitd_ip)" >&2
38 echo -n "IP? " >&2 44 echo -n "IP? " >&2
100 echo -n "TLDSrvIP? " >&2 106 echo -n "TLDSrvIP? " >&2
101 read new_tinydns__tldsrvrip 107 read new_tinydns__tldsrvrip
102 if [ x"$new_tinydns__tldsrvrip" != x ]; then 108 if [ x"$new_tinydns__tldsrvrip" != x ]; then
103 tinydns__tldsrvrip="$new_tinydns__tldsrvrip" 109 tinydns__tldsrvrip="$new_tinydns__tldsrvrip"
104 fi 110 fi
111
112 echo "Please enter the hostname of your nameserver." >&2
113 echo "(Default: $tinydns__srvrname)" >&2
114 echo -n "SrvName? " >&2
115 read new_tinydns__srvrname
116 if [ x"$new_tinydns__srvrname" != x ]; then
117 tinydns__srvrname="$new_tinydns__srvrname"
118 fi
119
120 echo "Please enter the IP address of your nameserver." >&2
121 echo "(Default: $tinydns__srvrip)" >&2
122 echo -n "SrvIP? " >&2
123 read new_tinydns__srvrip
124 if [ x"$new_tinydns__srvrip" != x ]; then
125 tinydns__srvrip="$new_tinydns__srvrip"
126 fi
105 fi 127 fi
106 128
107 echo "Proposed configuration:" >&2 129 echo "Proposed configuration:" >&2
108 for var in $vars ; do 130 for var in $vars ; do
109 echo "$var=${!var}" >&2 131 echo "$var=${!var}" >&2