]> gitweb.fluxo.info Git - firma.git/commitdiff
increased verbosity in function SubscribeUsers
authorrhatto <rhatto>
Sun, 12 Nov 2006 16:40:34 +0000 (16:40 +0000)
committerrhatto <rhatto>
Sun, 12 Nov 2006 16:40:34 +0000 (16:40 +0000)
firma

diff --git a/firma b/firma
index 3e3e5bcae7bb7ed92ff5c777a3116e5d4d2d1c0b..56fb1d6cc9deb071ec961917ad35042db09dc9ec 100755 (executable)
--- a/firma
+++ b/firma
@@ -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"