This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangchengwei-miniorelated/create_buckets.sh
2019-05-09 15:25:36 +08:00

19 lines
339 B
Bash

#!/bin/sh
#./mc config host add myminio http://127.0.0.1:9000 minio 1234567890
bucket_name=openbucket
bucket_num=32
for (( i=0; i<$bucket_num; i++ ))
do
./mc mb myminio/$bucket_name$i
./mc policy public myminio/$bucket_name$i
done
#for (( i=0; i<$bucket_num; i++ ))
#do
# ./mc rm -r --force myminio/$bucket_name$i > /dev/null
#done