aboutsummaryrefslogtreecommitdiff
path: root/contrib/gnunet-gns-import.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-06-23 14:12:48 +0200
committerChristian Grothoff <christian@grothoff.org>2017-06-23 14:13:12 +0200
commit17a49aabbb796839236cde428f82ae69a1665bcb (patch)
tree53438b5439637fb297fdb7299e2a4cfbab83c3e4 /contrib/gnunet-gns-import.sh
parenta0b43a2805e5abd47783ef225b6c2407cfe9cc32 (diff)
downloadgnunet-17a49aabbb796839236cde428f82ae69a1665bcb.tar.gz
gnunet-17a49aabbb796839236cde428f82ae69a1665bcb.zip
kill short zone remenants
Diffstat (limited to 'contrib/gnunet-gns-import.sh')
-rwxr-xr-xcontrib/gnunet-gns-import.sh13
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)
53gnunet-identity -e short-zone -s gns-short $options
54
55# Default zone for 'gnunet-gns' lookups 51# Default zone for 'gnunet-gns' lookups
56gnunet-identity -e master-zone -s gns-master $options 52gnunet-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)
78MASTER=`gnunet-identity -d $options | grep master-zone | awk '{print $3}'` 74MASTER=`gnunet-identity -d $options | grep master-zone | awk '{print $3}'`
79SHORT=`gnunet-identity -d $options | grep short-zone | awk '{print $3}'`
80PRIVATE=`gnunet-identity -d $options | grep private-zone | awk '{print $3}'` 75PRIVATE=`gnunet-identity -d $options | grep private-zone | awk '{print $3}'`
81PIN=DWJASSPE33MRN8T6Q0PENRNBTQY0E6ZYGTRCDP5DGPBF2CRJMJEG 76PIN=DWJASSPE33MRN8T6Q0PENRNBTQY0E6ZYGTRCDP5DGPBF2CRJMJEG
82 77
83# Link short and private zones into master zone 78# Link private zone into master zone
84if (gnunet-namestore -z master-zone -D -n private -t PKEY | grep "PKEY: $PRIVATE" 1>/dev/null) 79if (gnunet-namestore -z master-zone -D -n private -t PKEY | grep "PKEY: $PRIVATE" 1>/dev/null)
85then 80then
86 echo "Private zone link exists, skipping" 81 echo "Private zone link exists, skipping"
87else 82else
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
89fi 84fi
90if (gnunet-namestore -z master-zone -D -n short -t PKEY | grep "PKEY: $SHORT" 1>/dev/null)
91then
92 echo "Shorten zone link exists, skipping"
93else
94 gnunet-namestore -z master-zone -a -e never -n short -p -t PKEY -V $SHORT $options
95fi
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"
98if (gnunet-namestore -z master-zone -D -n pin -t PKEY | grep "PKEY: $PIN" 1>/dev/null) 87if (gnunet-namestore -z master-zone -D -n pin -t PKEY | grep "PKEY: $PIN" 1>/dev/null)