diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-11-05 20:52:02 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-11-05 20:52:02 +0000 |
commit | f416ed5cff91ff66dadfb4797562ec5c5a0adc21 (patch) | |
tree | f2eec24ae277aba0163d4c01b464defaa4ba7d93 /src/gns/test_gns_zkey_lookup.sh | |
parent | d6dc95fdf0a795338f6dacb0d8141e3970924dc9 (diff) | |
download | gnunet-f416ed5cff91ff66dadfb4797562ec5c5a0adc21.tar.gz gnunet-f416ed5cff91ff66dadfb4797562ec5c5a0adc21.zip |
-fixing zkey resolution
Diffstat (limited to 'src/gns/test_gns_zkey_lookup.sh')
-rwxr-xr-x | src/gns/test_gns_zkey_lookup.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gns/test_gns_zkey_lookup.sh b/src/gns/test_gns_zkey_lookup.sh index dbf4f1f12..79f5908a2 100755 --- a/src/gns/test_gns_zkey_lookup.sh +++ b/src/gns/test_gns_zkey_lookup.sh | |||
@@ -10,7 +10,7 @@ DELEGATED_PKEY=$(gnunet-identity -d -c test_gns_lookup.conf | grep delegatedego | |||
10 | gnunet-identity -C testego -c test_gns_lookup.conf | 10 | gnunet-identity -C testego -c test_gns_lookup.conf |
11 | gnunet-namestore -p -z testego -a -n b -t PKEY -V $DELEGATED_PKEY -e never -c test_gns_lookup.conf | 11 | gnunet-namestore -p -z testego -a -n b -t PKEY -V $DELEGATED_PKEY -e never -c test_gns_lookup.conf |
12 | gnunet-namestore -p -z delegatedego -a -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf | 12 | gnunet-namestore -p -z delegatedego -a -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf |
13 | RES_IP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.$DELEGATED_PKEY'.zkey' -t A -c test_gns_lookup.conf` | 13 | RES_IP=`$DO_TIMEOUT gnunet-gns --raw -z testego -u www.${DELEGATED_PKEY}.zkey -t A -c test_gns_lookup.conf` |
14 | gnunet-namestore -z testego -d -n b -t PKEY -V $DELEGATED_PKEY -e never -c test_gns_lookup.conf | 14 | gnunet-namestore -z testego -d -n b -t PKEY -V $DELEGATED_PKEY -e never -c test_gns_lookup.conf |
15 | gnunet-namestore -z delegatedego -d -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf | 15 | gnunet-namestore -z delegatedego -d -n www -t A -V $TEST_IP -e never -c test_gns_lookup.conf |
16 | gnunet-arm -e -c test_gns_lookup.conf | 16 | gnunet-arm -e -c test_gns_lookup.conf |
@@ -19,6 +19,6 @@ if [ "$RES_IP" == "$TEST_IP" ] | |||
19 | then | 19 | then |
20 | exit 0 | 20 | exit 0 |
21 | else | 21 | else |
22 | echo "Failed to resolve to proper IP, got $RES_IP." | 22 | echo "Failed to resolve to proper IP, got $RES_IP, wanted $TEST_IP." |
23 | exit 1 | 23 | exit 1 |
24 | fi | 24 | fi |