diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-06-23 14:12:48 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-06-23 14:13:12 +0200 |
commit | 17a49aabbb796839236cde428f82ae69a1665bcb (patch) | |
tree | 53438b5439637fb297fdb7299e2a4cfbab83c3e4 /contrib/gnunet-gns-import.sh | |
parent | a0b43a2805e5abd47783ef225b6c2407cfe9cc32 (diff) | |
download | gnunet-17a49aabbb796839236cde428f82ae69a1665bcb.tar.gz gnunet-17a49aabbb796839236cde428f82ae69a1665bcb.zip |
kill short zone remenants
Diffstat (limited to 'contrib/gnunet-gns-import.sh')
-rwxr-xr-x | contrib/gnunet-gns-import.sh | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/contrib/gnunet-gns-import.sh b/contrib/gnunet-gns-import.sh index 635360803..7b46379d6 100755 --- a/contrib/gnunet-gns-import.sh +++ b/contrib/gnunet-gns-import.sh | |||
@@ -48,10 +48,6 @@ gnunet-identity -C sks-zone $options | |||
48 | 48 | ||
49 | #### Integrate those with the respective subsystems #### | 49 | #### Integrate those with the respective subsystems #### |
50 | 50 | ||
51 | # Zone for shortening by gns-proxy, | ||
52 | # (remove this entry to disable shortening) | ||
53 | gnunet-identity -e short-zone -s gns-short $options | ||
54 | |||
55 | # Default zone for 'gnunet-gns' lookups | 51 | # Default zone for 'gnunet-gns' lookups |
56 | gnunet-identity -e master-zone -s gns-master $options | 52 | gnunet-identity -e master-zone -s gns-master $options |
57 | 53 | ||
@@ -76,23 +72,16 @@ gnunet-identity -e sks-zone -s fs-sks $options | |||
76 | 72 | ||
77 | # Get the public keys as strings (so we can create PKEY records) | 73 | # Get the public keys as strings (so we can create PKEY records) |
78 | MASTER=`gnunet-identity -d $options | grep master-zone | awk '{print $3}'` | 74 | MASTER=`gnunet-identity -d $options | grep master-zone | awk '{print $3}'` |
79 | SHORT=`gnunet-identity -d $options | grep short-zone | awk '{print $3}'` | ||
80 | PRIVATE=`gnunet-identity -d $options | grep private-zone | awk '{print $3}'` | 75 | PRIVATE=`gnunet-identity -d $options | grep private-zone | awk '{print $3}'` |
81 | PIN=DWJASSPE33MRN8T6Q0PENRNBTQY0E6ZYGTRCDP5DGPBF2CRJMJEG | 76 | PIN=DWJASSPE33MRN8T6Q0PENRNBTQY0E6ZYGTRCDP5DGPBF2CRJMJEG |
82 | 77 | ||
83 | # Link short and private zones into master zone | 78 | # Link private zone into master zone |
84 | if (gnunet-namestore -z master-zone -D -n private -t PKEY | grep "PKEY: $PRIVATE" 1>/dev/null) | 79 | if (gnunet-namestore -z master-zone -D -n private -t PKEY | grep "PKEY: $PRIVATE" 1>/dev/null) |
85 | then | 80 | then |
86 | echo "Private zone link exists, skipping" | 81 | echo "Private zone link exists, skipping" |
87 | else | 82 | else |
88 | gnunet-namestore -z master-zone -a -e never -n private -p -t PKEY -V $PRIVATE $options | 83 | gnunet-namestore -z master-zone -a -e never -n private -p -t PKEY -V $PRIVATE $options |
89 | fi | 84 | fi |
90 | if (gnunet-namestore -z master-zone -D -n short -t PKEY | grep "PKEY: $SHORT" 1>/dev/null) | ||
91 | then | ||
92 | echo "Shorten zone link exists, skipping" | ||
93 | else | ||
94 | gnunet-namestore -z master-zone -a -e never -n short -p -t PKEY -V $SHORT $options | ||
95 | fi | ||
96 | 85 | ||
97 | # Link GNUnet's FCFS zone into master zone under label "pin" | 86 | # Link GNUnet's FCFS zone into master zone under label "pin" |
98 | if (gnunet-namestore -z master-zone -D -n pin -t PKEY | grep "PKEY: $PIN" 1>/dev/null) | 87 | if (gnunet-namestore -z master-zone -D -n pin -t PKEY | grep "PKEY: $PIN" 1>/dev/null) |