Mercurial > hg > anonet-resdb
annotate configure @ 1126:418e82d1192e draft
added yusyus's stuff
author | yusyus <nobody@nowhere> |
---|---|
date | Thu, 18 Jul 2013 19:21:11 +0000 |
parents | df77b4da95f1 |
children | 474071fa6e61 |
rev | line source |
---|---|
822
656b9133db24
See commit b422ead31b077041cb030064008c6cd26ba058d0 for more info.
Nick <nick@somerandomnick.ano>
parents:
819
diff
changeset
|
1 #!/bin/sh |
9
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
2 |
799
f0b58a1a7afd
Now ./configure tries to help for peer2anonet --configure-dns :-)
Nick <nick@somerandomnick.ano>
parents:
622
diff
changeset
|
3 vars="gitd_ip gitd_basepath git_name git_email tinydns_config tinydns__rootsrvrname tinydns__rootsrvrip tinydns__tldsrvrname tinydns__tldsrvrip tinydns__srvrip tinydns__srvrname" |
9
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
4 |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
5 echo "Welcome to the resdb configurator!" >&2 |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
6 echo >&2 |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
7 |
1105 | 8 if ! $(echo "$var=${!var}" >/dev/null 2>&1) |
1104 | 9 then |
822
656b9133db24
See commit b422ead31b077041cb030064008c6cd26ba058d0 for more info.
Nick <nick@somerandomnick.ano>
parents:
819
diff
changeset
|
10 echo "Your shell sucks. If you're using a stupid OS like Ubuntu that doesn't" >&2 |
656b9133db24
See commit b422ead31b077041cb030064008c6cd26ba058d0 for more info.
Nick <nick@somerandomnick.ano>
parents:
819
diff
changeset
|
11 echo "give a damn about backwards compatibility, I'd suggest fixing your" >&2 |
656b9133db24
See commit b422ead31b077041cb030064008c6cd26ba058d0 for more info.
Nick <nick@somerandomnick.ano>
parents:
819
diff
changeset
|
12 echo "default shell, which you can do by typing \"ln -s bash /bin/sh\" at a" >&2 |
656b9133db24
See commit b422ead31b077041cb030064008c6cd26ba058d0 for more info.
Nick <nick@somerandomnick.ano>
parents:
819
diff
changeset
|
13 echo "root shell prompt." >&2 |
656b9133db24
See commit b422ead31b077041cb030064008c6cd26ba058d0 for more info.
Nick <nick@somerandomnick.ano>
parents:
819
diff
changeset
|
14 echo "If you have some ancient Unix system, I'd suggest installing bash." >&2 |
656b9133db24
See commit b422ead31b077041cb030064008c6cd26ba058d0 for more info.
Nick <nick@somerandomnick.ano>
parents:
819
diff
changeset
|
15 echo "If you have questions, you can always bother SRN :-)" >&2 |
1105 | 16 echo >&2 |
17 echo "dpkg-reconfigure dash -- d3v11" >&2 | |
18 | |
822
656b9133db24
See commit b422ead31b077041cb030064008c6cd26ba058d0 for more info.
Nick <nick@somerandomnick.ano>
parents:
819
diff
changeset
|
19 exit 1 |
656b9133db24
See commit b422ead31b077041cb030064008c6cd26ba058d0 for more info.
Nick <nick@somerandomnick.ano>
parents:
819
diff
changeset
|
20 fi |
656b9133db24
See commit b422ead31b077041cb030064008c6cd26ba058d0 for more info.
Nick <nick@somerandomnick.ano>
parents:
819
diff
changeset
|
21 |
9
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
22 for var in $vars ; do |
12
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
23 export "$var"="$(cat conf/$var 2>/dev/null)" |
9
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
24 done |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
25 if [ x"$gitd_basepath" = x ]; then |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
26 gitd_basepath="$(pwd)/" |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
27 fi |
287
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
28 if [ x"$git_name" = x ]; then |
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
29 git_name="Anonymous Coward" |
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
30 fi |
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
31 if [ x"$git_email" = x ]; then |
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
32 git_email="nobody@nowhere" |
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
33 fi |
12
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
34 if [ x"$tinydns_config" = x ]; then |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
35 tinydns_config=n |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
36 fi |
622
fd1945470e54
added nameserver_autogen for root nameserver
Nick <nick@somerandomnick.ano>
parents:
357
diff
changeset
|
37 if [ x"$tinydns__rootsrvrname" = x ]; then |
fd1945470e54
added nameserver_autogen for root nameserver
Nick <nick@somerandomnick.ano>
parents:
357
diff
changeset
|
38 tinydns__rootsrvrname="uz5hn5hz5x5bp09p5z2806x4gngcw1k5j2wk88fuvkth5pp2hw4t2d.rootns.somerandomnick.ano" |
fd1945470e54
added nameserver_autogen for root nameserver
Nick <nick@somerandomnick.ano>
parents:
357
diff
changeset
|
39 fi |
fd1945470e54
added nameserver_autogen for root nameserver
Nick <nick@somerandomnick.ano>
parents:
357
diff
changeset
|
40 if [ x"$tinydns__rootsrvrip" = x ]; then |
fd1945470e54
added nameserver_autogen for root nameserver
Nick <nick@somerandomnick.ano>
parents:
357
diff
changeset
|
41 tinydns__rootsrvrip="1.0.27.39" |
fd1945470e54
added nameserver_autogen for root nameserver
Nick <nick@somerandomnick.ano>
parents:
357
diff
changeset
|
42 fi |
12
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
43 if [ x"$tinydns__tldsrvrname" = x ]; then |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
44 tinydns__tldsrvrname="uz5fvb7zdqyuz4q8ysjdfuf04kzd2lrt0l6fp4uyguxdg5tfut06ck.anons.somerandomnick.ano" |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
45 fi |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
46 if [ x"$tinydns__tldsrvrip" = x ]; then |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
47 tinydns__tldsrvrip="1.0.27.37" |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
48 fi |
799
f0b58a1a7afd
Now ./configure tries to help for peer2anonet --configure-dns :-)
Nick <nick@somerandomnick.ano>
parents:
622
diff
changeset
|
49 if [ x"$tinydns__srvrname" = x ]; then |
f0b58a1a7afd
Now ./configure tries to help for peer2anonet --configure-dns :-)
Nick <nick@somerandomnick.ano>
parents:
622
diff
changeset
|
50 tinydns__srvrname="uz5z6spsd4jsd2k984wuzknr13gwjc630gmvtcv4bmpsrb04c179h1.ns.somerandomnick.ano" |
f0b58a1a7afd
Now ./configure tries to help for peer2anonet --configure-dns :-)
Nick <nick@somerandomnick.ano>
parents:
622
diff
changeset
|
51 fi |
f0b58a1a7afd
Now ./configure tries to help for peer2anonet --configure-dns :-)
Nick <nick@somerandomnick.ano>
parents:
622
diff
changeset
|
52 if [ x"$tinydns__srvrip" = x ]; then |
f0b58a1a7afd
Now ./configure tries to help for peer2anonet --configure-dns :-)
Nick <nick@somerandomnick.ano>
parents:
622
diff
changeset
|
53 tinydns__srvrip="1.0.27.86" |
f0b58a1a7afd
Now ./configure tries to help for peer2anonet --configure-dns :-)
Nick <nick@somerandomnick.ano>
parents:
622
diff
changeset
|
54 fi |
9
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
55 |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
56 echo "Please enter the IP address you'd like gitd to listen on." >&2 |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
57 echo "(Default: $gitd_ip)" >&2 |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
58 echo -n "IP? " >&2 |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
59 read new_gitd_ip |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
60 if [ x"$new_gitd_ip" != x ]; then |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
61 gitd_ip="$new_gitd_ip" |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
62 fi |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
63 |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
64 echo "Please enter the full path to resdb." >&2 |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
65 echo "(Default: $gitd_basepath)" >&2 |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
66 echo -n "BasePath? " >&2 |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
67 read new_gitd_basepath |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
68 if [ x"$new_gitd_basepath" != x ]; then |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
69 gitd_basepath="$new_gitd_basepath" |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
70 fi |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
71 |
287
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
72 echo "Please enter your name." >&2 |
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
73 echo "(Default: $git_name)" >&2 |
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
74 echo -n "Name? " >&2 |
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
75 read new_git_name |
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
76 if [ x"$new_git_name" != x ]; then |
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
77 git_name="$new_git_name" |
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
78 fi |
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
79 |
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
80 echo "Please enter your email." >&2 |
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
81 echo "(Default: $git_email)" >&2 |
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
82 echo -n "Email? " >&2 |
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
83 read new_git_email |
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
84 if [ x"$new_git_email" != x ]; then |
288
2e7d34122df5
fixed a bug preventing the previous commit from working right
Nick <nick@somerandomnick.ano>
parents:
287
diff
changeset
|
85 git_email="$new_git_email" |
287
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
86 fi |
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
87 |
12
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
88 echo -n "Would you like to configure the tinydns datafile generator? " >&2 |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
89 read new_tinydns_config |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
90 if [ x"$new_tinydns_config" != x ]; then |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
91 tinydns_config="$new_tinydns_config" |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
92 fi |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
93 if [ x"$tinydns_config" = xy ]; then |
622
fd1945470e54
added nameserver_autogen for root nameserver
Nick <nick@somerandomnick.ano>
parents:
357
diff
changeset
|
94 echo "Please enter the hostname of your root nameserver." >&2 |
fd1945470e54
added nameserver_autogen for root nameserver
Nick <nick@somerandomnick.ano>
parents:
357
diff
changeset
|
95 echo "(Default: $tinydns__rootsrvrname)" >&2 |
fd1945470e54
added nameserver_autogen for root nameserver
Nick <nick@somerandomnick.ano>
parents:
357
diff
changeset
|
96 echo -n "RootSrvName? " >&2 |
fd1945470e54
added nameserver_autogen for root nameserver
Nick <nick@somerandomnick.ano>
parents:
357
diff
changeset
|
97 read new_tinydns__rootsrvrname |
fd1945470e54
added nameserver_autogen for root nameserver
Nick <nick@somerandomnick.ano>
parents:
357
diff
changeset
|
98 if [ x"$new_tinydns__rootsrvrname" != x ]; then |
fd1945470e54
added nameserver_autogen for root nameserver
Nick <nick@somerandomnick.ano>
parents:
357
diff
changeset
|
99 tinydns__rootsrvrname="$new_tinydns__rootsrvrname" |
fd1945470e54
added nameserver_autogen for root nameserver
Nick <nick@somerandomnick.ano>
parents:
357
diff
changeset
|
100 fi |
fd1945470e54
added nameserver_autogen for root nameserver
Nick <nick@somerandomnick.ano>
parents:
357
diff
changeset
|
101 |
fd1945470e54
added nameserver_autogen for root nameserver
Nick <nick@somerandomnick.ano>
parents:
357
diff
changeset
|
102 echo "Please enter the IP address of your root nameserver." >&2 |
fd1945470e54
added nameserver_autogen for root nameserver
Nick <nick@somerandomnick.ano>
parents:
357
diff
changeset
|
103 echo "(Default: $tinydns__rootsrvrip)" >&2 |
fd1945470e54
added nameserver_autogen for root nameserver
Nick <nick@somerandomnick.ano>
parents:
357
diff
changeset
|
104 echo -n "RootSrvIP? " >&2 |
fd1945470e54
added nameserver_autogen for root nameserver
Nick <nick@somerandomnick.ano>
parents:
357
diff
changeset
|
105 read new_tinydns__rootsrvrip |
fd1945470e54
added nameserver_autogen for root nameserver
Nick <nick@somerandomnick.ano>
parents:
357
diff
changeset
|
106 if [ x"$new_tinydns__rootsrvrip" != x ]; then |
fd1945470e54
added nameserver_autogen for root nameserver
Nick <nick@somerandomnick.ano>
parents:
357
diff
changeset
|
107 tinydns__rootsrvrip="$new_tinydns__rootsrvrip" |
fd1945470e54
added nameserver_autogen for root nameserver
Nick <nick@somerandomnick.ano>
parents:
357
diff
changeset
|
108 fi |
fd1945470e54
added nameserver_autogen for root nameserver
Nick <nick@somerandomnick.ano>
parents:
357
diff
changeset
|
109 |
12
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
110 echo "Please enter the hostname of your .ano TLD server." >&2 |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
111 echo "(Default: $tinydns__tldsrvrname)" >&2 |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
112 echo -n "TLDSrvName? " >&2 |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
113 read new_tinydns__tldsrvrname |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
114 if [ x"$new_tinydns__tldsrvrname" != x ]; then |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
115 tinydns__tldsrvrname="$new_tinydns__tldsrvrname" |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
116 fi |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
117 |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
118 echo "Please enter the IP address of your .ano TLD server." >&2 |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
119 echo "(Default: $tinydns__tldsrvrip)" >&2 |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
120 echo -n "TLDSrvIP? " >&2 |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
121 read new_tinydns__tldsrvrip |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
122 if [ x"$new_tinydns__tldsrvrip" != x ]; then |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
123 tinydns__tldsrvrip="$new_tinydns__tldsrvrip" |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
124 fi |
799
f0b58a1a7afd
Now ./configure tries to help for peer2anonet --configure-dns :-)
Nick <nick@somerandomnick.ano>
parents:
622
diff
changeset
|
125 |
f0b58a1a7afd
Now ./configure tries to help for peer2anonet --configure-dns :-)
Nick <nick@somerandomnick.ano>
parents:
622
diff
changeset
|
126 echo "Please enter the hostname of your nameserver." >&2 |
f0b58a1a7afd
Now ./configure tries to help for peer2anonet --configure-dns :-)
Nick <nick@somerandomnick.ano>
parents:
622
diff
changeset
|
127 echo "(Default: $tinydns__srvrname)" >&2 |
f0b58a1a7afd
Now ./configure tries to help for peer2anonet --configure-dns :-)
Nick <nick@somerandomnick.ano>
parents:
622
diff
changeset
|
128 echo -n "SrvName? " >&2 |
f0b58a1a7afd
Now ./configure tries to help for peer2anonet --configure-dns :-)
Nick <nick@somerandomnick.ano>
parents:
622
diff
changeset
|
129 read new_tinydns__srvrname |
f0b58a1a7afd
Now ./configure tries to help for peer2anonet --configure-dns :-)
Nick <nick@somerandomnick.ano>
parents:
622
diff
changeset
|
130 if [ x"$new_tinydns__srvrname" != x ]; then |
f0b58a1a7afd
Now ./configure tries to help for peer2anonet --configure-dns :-)
Nick <nick@somerandomnick.ano>
parents:
622
diff
changeset
|
131 tinydns__srvrname="$new_tinydns__srvrname" |
f0b58a1a7afd
Now ./configure tries to help for peer2anonet --configure-dns :-)
Nick <nick@somerandomnick.ano>
parents:
622
diff
changeset
|
132 fi |
f0b58a1a7afd
Now ./configure tries to help for peer2anonet --configure-dns :-)
Nick <nick@somerandomnick.ano>
parents:
622
diff
changeset
|
133 |
f0b58a1a7afd
Now ./configure tries to help for peer2anonet --configure-dns :-)
Nick <nick@somerandomnick.ano>
parents:
622
diff
changeset
|
134 echo "Please enter the IP address of your nameserver." >&2 |
f0b58a1a7afd
Now ./configure tries to help for peer2anonet --configure-dns :-)
Nick <nick@somerandomnick.ano>
parents:
622
diff
changeset
|
135 echo "(Default: $tinydns__srvrip)" >&2 |
f0b58a1a7afd
Now ./configure tries to help for peer2anonet --configure-dns :-)
Nick <nick@somerandomnick.ano>
parents:
622
diff
changeset
|
136 echo -n "SrvIP? " >&2 |
f0b58a1a7afd
Now ./configure tries to help for peer2anonet --configure-dns :-)
Nick <nick@somerandomnick.ano>
parents:
622
diff
changeset
|
137 read new_tinydns__srvrip |
f0b58a1a7afd
Now ./configure tries to help for peer2anonet --configure-dns :-)
Nick <nick@somerandomnick.ano>
parents:
622
diff
changeset
|
138 if [ x"$new_tinydns__srvrip" != x ]; then |
f0b58a1a7afd
Now ./configure tries to help for peer2anonet --configure-dns :-)
Nick <nick@somerandomnick.ano>
parents:
622
diff
changeset
|
139 tinydns__srvrip="$new_tinydns__srvrip" |
f0b58a1a7afd
Now ./configure tries to help for peer2anonet --configure-dns :-)
Nick <nick@somerandomnick.ano>
parents:
622
diff
changeset
|
140 fi |
12
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
141 fi |
41b330b11a33
coded a tinydns datafile generator
Nick <nick@somerandomnick.ano>
parents:
9
diff
changeset
|
142 |
9
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
143 echo "Proposed configuration:" >&2 |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
144 for var in $vars ; do |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
145 echo "$var=${!var}" >&2 |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
146 done |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
147 echo -n "To write the configuration, hit RETURN. To abort, hit ^C: " >&2 |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
148 read write_config |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
149 |
287
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
150 echo -n "Writing configuration... " >&2 |
9
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
151 mkdir -p conf || exit 1 |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
152 for var in $vars ; do |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
153 echo "${!var}" > conf/"$var" || exit 1 |
8f9565400a0f
added configure script (so you don't have to modify gitd itself)
Nick <nick@somerandomnick.ano>
parents:
diff
changeset
|
154 done |
287
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
155 echo "Done" >&2 |
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
156 |
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
157 echo -n "Updating git configuration... " >&2 |
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
158 cd "$(cat ./conf/gitd_basepath)" || exit 1 |
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
159 git config user.name "$(cat ./conf/git_name)" || exit 1 |
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
160 git config user.email "$(cat ./conf/git_email)" || exit 1 |
b295bc1fe853
updated configure script to help hide identity
Nick <nick@somerandomnick.ano>
parents:
12
diff
changeset
|
161 echo "Done" >&2 |