Skip to content
Snippets Groups Projects
Commit 447ccc18 authored by Fabian Wachsmann's avatar Fabian Wachsmann
Browse files

Added mime change

parent fd516956
No related branches found
No related tags found
No related merge requests found
Pipeline #84848 passed
#!/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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment