diff options
author | rhatto <rhatto> | 2006-11-12 16:40:34 +0000 |
---|---|---|
committer | rhatto <rhatto> | 2006-11-12 16:40:34 +0000 |
commit | cb1ccf4818f08a782b8f8f1934b8b3d0ea005745 (patch) | |
tree | bf38e0dcfc4d6368e14b962981a9a074b45a33f0 | |
parent | de561d0bb0ff91bc873be912a2ace61f95fd16e7 (diff) | |
download | firma-cb1ccf4818f08a782b8f8f1934b8b3d0ea005745.tar.gz firma-cb1ccf4818f08a782b8f8f1934b8b3d0ea005745.tar.bz2 |
increased verbosity in function SubscribeUsers
-rwxr-xr-x | firma | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1511,6 +1511,10 @@ function SubscribeUsers { if [ "$MODE" == "admin-interactive" ]; then echo "Please enter the key material here, finninshing with Ctrl-D sequence..." $GPG_NOBATCH --import + return_code=$? + if [ "$return_code" == "0" ]; then + AdminLog "successfully subscribed user $1" + fi else AdminLog "subscribe: stdin option only valid in the interactive (command-line) mode" return_code=1 @@ -1520,6 +1524,10 @@ function SubscribeUsers { if [ ! -z "$2" ]; then if [ -f "$2" ]; then $GPG --import < $2 + return_code=$? + if [ "$return_code" == "0" ]; then + AdminLog "successfully subscribed user $1" + fi else echo >&2 "subscribe: cant add subscribers from $1: no such file or directory" return_code=1 @@ -1558,6 +1566,9 @@ function SubscribeUsers { shift $GPG_NOBATCH --keyserver $keyserver $method $* return_code=$? + if [ "$return_code" == "0" ]; then + AdminLog "successfully subscribed user $1" + fi fi else AdminLog "subscribe: missing parameters: type subscribe help" |