diff --git a/helm/minio/templates/_helper_create_bucket.txt b/helm/minio/templates/_helper_create_bucket.txt index ea29f334a..98d9ead17 100644 --- a/helm/minio/templates/_helper_create_bucket.txt +++ b/helm/minio/templates/_helper_create_bucket.txt @@ -85,7 +85,7 @@ if ! checkBucketExists $BUCKET ; then # set versioning for bucket if objectlocking is disabled or not set - if [ -z $OBJECTLOCKING ] ; then + if [ $OBJECTLOCKING = false ] ; then if [ ! -z $VERSIONING ] ; then if [ $VERSIONING = true ] ; then echo "Enabling versioning for '$BUCKET'"