Mercurial > hg > anonet-resdb
changeset 1020:bace90f3f318 draft
[scripts/add_udpmsg4_chat] [security] .gitignore seckey (thanks Ivo)
author | d3v11 <d3v11@d3v11.ano> |
---|---|
date | Sat, 06 Oct 2012 22:06:10 +0000 |
parents | 1219afbcefbd |
children | 9c22f6ca8b1f |
files | db/udpmsg4_chat/anonet/@/owner db/udpmsg4_chat/anonet/@/pubkey db/udpmsg4_chat/anonet/@/seckey db/udpmsg4_chat/freeanons/@/owner db/udpmsg4_chat/freeanons/@/pubkey db/udpmsg4_chat/freeanons/@/seckey scripts/add_udpmsg4_chat |
diffstat | 7 files changed, 5 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/db/udpmsg4_chat/anonet/@/owner Mon Oct 01 00:23:17 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -legion \ No newline at end of file
--- a/db/udpmsg4_chat/anonet/@/pubkey Mon Oct 01 00:23:17 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -f5fc06fc146eb7ebabe2dbfa7711346703e976ba021062b4e976f9007f0dda4f \ No newline at end of file
--- a/db/udpmsg4_chat/anonet/@/seckey Mon Oct 01 00:23:17 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -f0b05bc6e944a3e9f5315df5a8b57706b25d8c02e4d86f8558664d015fb3f784 \ No newline at end of file
--- a/db/udpmsg4_chat/freeanons/@/owner Mon Oct 01 00:23:17 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -legion \ No newline at end of file
--- a/db/udpmsg4_chat/freeanons/@/pubkey Mon Oct 01 00:23:17 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -f5fc06fc146eb7ebabe2dbfa7711346703e976ba021062b4e976f9007f0dda4f \ No newline at end of file
--- a/db/udpmsg4_chat/freeanons/@/seckey Mon Oct 01 00:23:17 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -f0b05bc6e944a3e9f5315df5a8b57706b25d8c02e4d86f8558664d015fb3f784 \ No newline at end of file
--- a/scripts/add_udpmsg4_chat Mon Oct 01 00:23:17 2012 +0000 +++ b/scripts/add_udpmsg4_chat Sat Oct 06 22:06:10 2012 +0000 @@ -1,11 +1,12 @@ #!/bin/sh -if [ -z $3 ]; then - echo "Usage: $0 <chat> <owner> <pubkey> <seckey>" >&2; exit 255 +if [ -z $5 ]; then + echo "Usage: $0 <chat> <owner> <pubkey> <seckey> <topic>" >&2; exit 255 fi chat="$1" owner="$2" pubkey="$3" seckey="$4" +topic="$5" if [ "$(echo -n "${chat/chat\//}" | tr -d 'A-Za-z0-9_-' | wc -c | tr -d ' \t')" != 0 ]; then echo "udpmsg4 chats do not allow funny chars." >&2; exit 255 @@ -29,3 +30,5 @@ echo -n "$owner" >"$fullchat/@/owner" echo -n "$pubkey" >"$fullchat/@/pubkey" echo -n "$seckey" >"$fullchat/@/seckey" +echo -n "$topic" >"$fullchat/@/topic" +echo -n "seckey" >"$fullchat/@/.gitignore"