[ARVADOS] updated: 1.3.0-3241-g15239a9f1

Git user git at public.arvados.org
Tue Sep 29 19:00:47 UTC 2020


Summary of changes:
 tools/arvbox/bin/arvbox | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

       via  15239a9f1bcd4897dd63df774bb8792a8055295a (commit)
      from  bc25855ab7a6aa0e75494f303889d8ca9fcc41f4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 15239a9f1bcd4897dd63df774bb8792a8055295a
Author: Peter Amstutz <peter.amstutz at curii.com>
Date:   Tue Sep 29 14:59:57 2020 -0400

    Better help text for arvbox adduser/removeuser no issue #
    
    Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz at curii.com>

diff --git a/tools/arvbox/bin/arvbox b/tools/arvbox/bin/arvbox
index 29f25daf8..3040cb793 100755
--- a/tools/arvbox/bin/arvbox
+++ b/tools/arvbox/bin/arvbox
@@ -638,13 +638,21 @@ EOF
         ;;
 
     adduser)
-        docker exec -ti $ARVBOX_CONTAINER /usr/local/lib/arvbox/edit_users.py $ARVADOS_CONTAINER_PATH/cluster_config.yml.override $(getclusterid) add $@
-        docker exec $ARVBOX_CONTAINER sv restart controller
+if [[ -n "$2" ]] ; then
+          docker exec -ti $ARVBOX_CONTAINER /usr/local/lib/arvbox/edit_users.py $ARVADOS_CONTAINER_PATH/cluster_config.yml.override $(getclusterid) add $@
+          docker exec $ARVBOX_CONTAINER sv restart controller
+	else
+	    echo "Usage: adduser <username> <email> [password]"
+	fi
         ;;
 
     removeuser)
-        docker exec -ti $ARVBOX_CONTAINER /usr/local/lib/arvbox/edit_users.py $ARVADOS_CONTAINER_PATH/cluster_config.yml.override $(getclusterid) remove $@
-        docker exec $ARVBOX_CONTAINER sv restart controller
+	if [[ -n "$1" ]] ; then
+          docker exec -ti $ARVBOX_CONTAINER /usr/local/lib/arvbox/edit_users.py $ARVADOS_CONTAINER_PATH/cluster_config.yml.override $(getclusterid) remove $@
+          docker exec $ARVBOX_CONTAINER sv restart controller
+	else
+	    echo "Usage: removeuser <username>"
+	fi
         ;;
 
     listusers)
@@ -681,7 +689,7 @@ EOF
         echo "sv <start|stop|restart> <service> "
         echo "                   change state of service inside arvbox"
         echo "clone <from> <to>  clone dev arvbox"
-        echo "adduser <username> <email>"
+        echo "adduser <username> <email> [password]"
         echo "                   add a user login"
         echo "removeuser <username>"
         echo "                   remove user login"

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list