Jelajahi Sumber

init bucket

apkipa 2 bulan lalu
induk
melakukan
191990e993
1 mengubah file dengan 5 tambahan dan 0 penghapusan
  1. 5 0
      minio-store/init_minio.sh

+ 5 - 0
minio-store/init_minio.sh

@@ -36,5 +36,10 @@ else
         --access-key "$ACCESS_KEY" --secret-key "$ACCESS_KEY_SECRET"
 fi
 
+# Add a bucket if not exists
+BUCKET_NAME="bucket"
+
+./bin/mc ls local/$BUCKET_NAME &>/dev/null || ./bin/mc mb local/$BUCKET_NAME
+
 # Done!
 echo "✅ Successfully configured MinIO server."