comparison contrib/peer2anonet/peer2anonet @ 1085:5ec278277aa4 draft

[peer2anonet] fix for ./scripts/add_ip (also include tinydns and tinydns)
author d3v11 <d3v11@d3v11.ano>
date Tue, 19 Mar 2013 21:22:47 +0000
parents b211722679fb
children
comparison
equal deleted inserted replaced
1084:93106436f24f 1085:5ec278277aa4
51 echo "P2A_ASN=\"$P2A_ASN\"">>/etc/peer2anonet/p2a.conf 51 echo "P2A_ASN=\"$P2A_ASN\"">>/etc/peer2anonet/p2a.conf
52 echo -e '\npeer2anonet: configured\n' 52 echo -e '\npeer2anonet: configured\n'
53 53
54 NICK=`cat conf/git_name` 54 NICK=`cat conf/git_name`
55 ./scripts/add_as $P2A_ASN $NICK 55 ./scripts/add_as $P2A_ASN $NICK
56 ./scripts/add_ip $P2A_NET/24 $NICK 56 ./scripts/add_ip $P2A_NET/24 $NICK "`cat conf/tinydns__srvrname`/`cat conf/tinydns__srvrip`"
57 [ -e "db/usr/$NICK" ] || mkdir -p "db/usr/$NICK" 57 [ -e "db/usr/$NICK" ] || mkdir -p "db/usr/$NICK"
58 [ -e "db/usr/$NICK/git" ] || echo "git://git.$NICK.ano/">"db/usr/$NICK/git" 58 [ -e "db/usr/$NICK/git" ] || echo "git://git.$NICK.ano/">"db/usr/$NICK/git"
59 [ -e "db/usr/$NICK/email" ] || echo "`cat conf/git_email`">"db/usr/$NICK/email" 59 [ -e "db/usr/$NICK/email" ] || echo "`cat conf/git_email`">"db/usr/$NICK/email"
60 exit 0 60 exit 0
61 } 61 }