This commit is contained in:
Jeffrey Serio 2024-12-01 22:34:35 -06:00
parent db40009692
commit 516b4dacd3

View File

@ -32,7 +32,7 @@ wget --quiet https://files.hyperreal.coffee/archive-index-template.html \
-O "${TMP_DIR}/index.html"
# Replace "CHANGEME" with the the BUCKET_NAME argument in index.html.
sed -i "s/CHANGEME/$1/g" "${TMP_DIR}/index.html"
sed -i "s/CHANGEME/$2/g" "${TMP_DIR}/index.html"
# Put the new index.html into the root of the given bucket.
mc put "${TMP_DIR}/index.html" "${1}/${2}/"