changeset 904:10a4ea42b757 draft

bugfixes
author d3v11 <d3v11@d3v11.ano>
date Sun, 29 Jan 2012 01:18:19 +0000
parents 712c50b33a63
children af399d79c0b8
files contrib/peer2anonet/peer2anonet
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/peer2anonet/peer2anonet	Sun Jan 29 01:15:15 2012 +0000
+++ b/contrib/peer2anonet/peer2anonet	Sun Jan 29 01:18:19 2012 +0000
@@ -386,16 +386,16 @@
     MX_IP=`cat conf/gitd_ip` || exit 1
     MX_DOMAIN="a.mx.$NICK.ano" || exit 1
 
-    echo "@$NICK.ano:$MX_IP:a:12801:86400">>/services/tinydns/root/data || 
-        echo '   fatal error: needs ./contrib/peer2anonet/peer2anonet --configure-dns' &&
-        exit 1
-
     if [ -e /services/tinydns ]; then
         ( 
             cd /services
             echo "creating /etc/peer2anonet/tinydns.tar backup"
             tar cf /etc/peer2anonet/tinydns.tar tinydns
+            echo "@$NICK.ano:$MX_IP:a:12801:86400">>/services/tinydns/root/data
         )
+    else
+        echo '   fatal error: needs ./contrib/peer2anonet/peer2anonet --configure-dns' &&
+        exit 1
     fi
 
     (