diff options
author | d3v11 <d3v11@d3v11.ano> | 2012-10-06 22:06:10 +0000 |
---|---|---|
committer | d3v11 <d3v11@d3v11.ano> | 2012-10-06 22:06:10 +0000 |
commit | 2dd865a6462d8e9a33f7529fda4dc87227d67256 (patch) | |
tree | 8f09c60d0ed7cb1df43500e74d524c8d139a9de1 /scripts | |
parent | af3e7bc29c6ac2e5369655595602936514427345 (diff) | |
download | resdb-2dd865a6462d8e9a33f7529fda4dc87227d67256.tar.gz resdb-2dd865a6462d8e9a33f7529fda4dc87227d67256.zip |
[scripts/add_udpmsg4_chat] [security] .gitignore seckey (thanks Ivo)
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/add_udpmsg4_chat | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/add_udpmsg4_chat b/scripts/add_udpmsg4_chat index 6600fad..594e20f 100755 --- a/scripts/add_udpmsg4_chat +++ b/scripts/add_udpmsg4_chat @@ -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 @@ mkdir -p $fullchat/@ || exit 1 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" |