- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for createUser (0.24 sec)
-
helm-releases/minio-1.0.1.tgz
active return 0 } # checkUserExists ($username) # Check if the user exists, by using the exit code of `mc admin user info` checkUserExists() { USER=$1 CMD=$(${MC} admin user info myminio $USER > /dev/null 2>&1) return $? } # createUser ($username, $password, $policy) createUser() { USER=$1 PASS=$2 POLICY=$3 # Create the user if it does not exist if ! checkUserExists $USER ; then echo "Creating user '$USER'" ${MC} admin user add myminio $USER $PASS else echo "User '$USER' already exists." fi # set policy...
Others - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Aug 20 22:32:29 GMT 2021 - 13.5K bytes - Viewed (0)