From 447ccc18bc760529492e7cc06a034e9063d448ce Mon Sep 17 00:00:00 2001
From: Fabian Wachsmann <k204210@l40350.lvt.dkrz.de>
Date: Mon, 28 Oct 2024 15:05:51 +0100
Subject: [PATCH] Added mime change

---
 test/cordex-cmip6/mime.sh | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100755 test/cordex-cmip6/mime.sh

diff --git a/test/cordex-cmip6/mime.sh b/test/cordex-cmip6/mime.sh
new file mode 100755
index 0000000..b71dabc
--- /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
-- 
GitLab