tweak log levels and messages in ma/update_users
authorJameson Rollins <jrollins@finestructure.net>
Fri, 22 Oct 2010 20:22:09 +0000 (16:22 -0400)
committerJameson Rollins <jrollins@finestructure.net>
Fri, 22 Oct 2010 20:22:09 +0000 (16:22 -0400)
src/share/ma/update_users

index 43695e221d9e9b818af727dc924c1918cea5e45e..a70d0000bbcb7507e2cc5a332e1c8460b073ec87 100644 (file)
@@ -73,9 +73,9 @@ for uname in $unames ; do
     # translating ssh-style path variables
     authorizedUserIDs=$(translate_ssh_variables "$uname" "$AUTHORIZED_USER_IDS")
     if [ -s "$authorizedUserIDs" ] ; then
-       log debug "authorized_user_ids file found."
        # check permissions on the authorized_user_ids file path
        if check_key_file_permissions "$uname" "$authorizedUserIDs" ; then
+           log verbose "processing authorized_user_ids..."
 
            # process authorized_user_ids file, as monkeysphere user
            su_monkeysphere_user \
@@ -98,10 +98,12 @@ for uname in $unames ; do
        if [ -s "$rawAuthorizedKeys" ] ; then
            # check permissions on the authorized_keys file path
            if check_key_file_permissions "$uname" "$rawAuthorizedKeys" ; then
-               log verbose "adding raw authorized_keys file... "
+               log verbose "adding raw authorized_keys..."
+
                cat "$rawAuthorizedKeys" >> "$tmpAuthorizedKeys"
+
            else
-               log debug "not adding raw authorized_keys file."                
+               log debug "not adding raw authorized_keys."
            fi
        else
            log debug "empty or absent authorized_keys file."