diff --git a/test/cordex-cmip6/mime.sh b/test/cordex-cmip6/mime.sh new file mode 100755 index 0000000000000000000000000000000000000000..b71dabc781d8805383ed7071ef733a350b2c06ed --- /dev/null +++ b/test/cordex-cmip6/mime.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +CONTAINER_NAME="plots" +NEW_MIME_TYPE="text/html" + +# Loop through each object in the container +for object in $(swift list $CONTAINER_NAME); do + # Change the content type + swift post "$CONTAINER_NAME" "$object" -H "Content-Type:$NEW_MIME_TYPE" + echo "Updated MIME type for $object to $NEW_MIME_TYPE" +done