mirror of
https://github.com/minio/minio.git
synced 2025-11-28 13:09:09 -05:00
@@ -73,7 +73,9 @@ createUser() {
|
||||
# set policy for user
|
||||
if [ ! -z $POLICY -a $POLICY != " " ] ; then
|
||||
echo "Adding policy '$POLICY' for '$USER'"
|
||||
set +e ; # policy already attach errors out, allow it.
|
||||
${MC} admin policy attach myminio $POLICY --user=$USER
|
||||
set -e
|
||||
else
|
||||
echo "User '$USER' has no policy attached."
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user