aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcontrib/gnunet-gns-import.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/gnunet-gns-import.sh b/contrib/gnunet-gns-import.sh
index abe1c5936..0ad3ab1d2 100755
--- a/contrib/gnunet-gns-import.sh
+++ b/contrib/gnunet-gns-import.sh
@@ -62,23 +62,23 @@ PRIVATE=`gnunet-identity -d $options | grep private-zone | awk '{print $3}'`
62PIN=72QC35CO20UJN1E91KPJFNT9TG4CLKAPB4VK9S3Q758S9MLBRKOG 62PIN=72QC35CO20UJN1E91KPJFNT9TG4CLKAPB4VK9S3Q758S9MLBRKOG
63 63
64# Link short and private zones into master zone 64# Link short and private zones into master zone
65if (gnunet-namestore -z master-zone -D -n private -t PKEY | grep "PKEY: $PRIVATE" &>/dev/null) 65if (gnunet-namestore -z master-zone -D -n private -t PKEY | grep "PKEY: $PRIVATE" 1>/dev/null)
66then 66then
67 : 67 echo "Private zone link exists, skipping"
68else 68else
69 gnunet-namestore -z master-zone -a -e never -n private -p -t PKEY -V $PRIVATE $options 69 gnunet-namestore -z master-zone -a -e never -n private -p -t PKEY -V $PRIVATE $options
70fi 70fi
71if (gnunet-namestore -z master-zone -D -n short -t PKEY | grep "PKEY: $SHORT" &>/dev/null) 71if (gnunet-namestore -z master-zone -D -n short -t PKEY | grep "PKEY: $SHORT" 1>/dev/null)
72then 72then
73 : 73 echo "Shorten zone link exists, skipping"
74else 74else
75 gnunet-namestore -z master-zone -a -e never -n short -p -t PKEY -V $SHORT $options 75 gnunet-namestore -z master-zone -a -e never -n short -p -t PKEY -V $SHORT $options
76fi 76fi
77 77
78# Link GNUnet's FCFS zone into master zone under label "pin" 78# Link GNUnet's FCFS zone into master zone under label "pin"
79if (gnunet-namestore -z master-zone -D -n pin -t PKEY | grep "PKEY: $PIN" &>/dev/null) 79if (gnunet-namestore -z master-zone -D -n pin -t PKEY | grep "PKEY: $PIN" 1>/dev/null)
80then 80then
81 : 81 echo "Pin zone link exists, skipping"
82else 82else
83 gnunet-namestore -z master-zone -a -e never -n pin -p -t PKEY -V $PIN $options 83 gnunet-namestore -z master-zone -a -e never -n pin -p -t PKEY -V $PIN $options
84fi 84fi