changeset 875:1f90d90584a0 draft

added db/usr/$NICK/git|email to --configure
author d3v11 <d3v11@d3v11.ano>
date Thu, 12 Jan 2012 13:09:59 +0000
parents 11e3ffa2a1e1
children 944bbc3f0727 682ccfe2ab61
files contrib/peer2anonet/peer2anonet
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/peer2anonet/peer2anonet	Thu Jan 12 07:14:14 2012 +0000
+++ b/contrib/peer2anonet/peer2anonet	Thu Jan 12 13:09:59 2012 +0000
@@ -50,6 +50,9 @@
     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
     }