summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authord3v11 <d3v11@d3v11.ano>2012-01-12 13:09:59 +0000
committerd3v11 <d3v11@d3v11.ano>2012-01-12 13:10:00 +0000
commit69c3bcefbd7dac06e9f2c15857101f862f4be58e (patch)
treec4caed036b50524a234806f139737af2f07611ee
parent3420bb70a369a53f60b25b1393c20744e15f5ee7 (diff)
downloadresdb-69c3bcefbd7dac06e9f2c15857101f862f4be58e.tar.gz
resdb-69c3bcefbd7dac06e9f2c15857101f862f4be58e.zip
added db/usr/$NICK/git|email to --configure
-rwxr-xr-xcontrib/peer2anonet/peer2anonet3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/peer2anonet/peer2anonet b/contrib/peer2anonet/peer2anonet
index df399d3..f1ab538 100755
--- a/contrib/peer2anonet/peer2anonet
+++ b/contrib/peer2anonet/peer2anonet
@@ -50,6 +50,9 @@ CONFIGURE(){
NICK=`cat conf/git_name`
./scripts/add_as $P2A_ASN $NICK
./scripts/add_ip $P2A_NET/24 $NICK
+ [ -e "db/usr/$NICK" ] || mkdir -p "db/usr/$NICK"
+ [ -e "db/usr/$NICK/git" ] || echo "git://git.$NICK.ano/">"db/usr/$NICK/git"
+ [ -e "db/usr/$NICK/email" ] || echo "`cat conf/git_email`">"db/usr/$NICK/email"
exit 0
}