Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for checkPolicyExists (0.24 sec)

  1. helm-releases/minio-3.5.4.tgz

    between attempts $MC_COMMAND ; STATUS=$? ; done ; set -e ; # reset `e` as active return 0 } # checkPolicyExists ($policy) # Check if the policy exists, by using the exit code of `mc admin policy info` checkPolicyExists() { POLICY=$1 CMD=$(${MC} admin policy info myminio $POLICY > /dev/null 2>&1) return $? } # createPolicy($name) createPolicy () { NAME=$1 # Create the name if it does not exist if ! checkPolicyExists $NAME ; then echo "Creating policy '$NAME'" else echo "Policy '$NAME' already exists." fi...
    Others
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 14 06:04:53 GMT 2022
    - 17.2K bytes
    - Viewed (0)
Back to top