summaryrefslogtreecommitdiff
path: root/contrib/peer2anonet
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/peer2anonet')
-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
}