Files
boc/fix-copyright.sh
T

37 lines
1.4 KiB
Bash
Raw Normal View History

#!/bin/bash
# Batch-fixa ©-text på alla landvex-sidor
FILES=(
"accessibility/index.html"
"compliance/index.html"
"cookie-policy/index.html"
"data-lineage/index.html"
"dpa/index.html"
"guides/index.html"
"methodology/index.html"
"privacy/index.html"
"reports/index.html"
"responsible-disclosure/index.html"
"security/index.html"
"sla/index.html"
"subprocessors/index.html"
"terms/index.html"
"trust/index.html"
)
for file in "${FILES[@]}"; do
echo "Fixar: $file"
aws s3 cp s3://landvex-prod/$file /tmp/fix-$file 2>/dev/null
if [ -f /tmp/fix-$file ]; then
sed -i 's/© 2026 Landvex Inc · Landvex AB (org.nr 559141-7042)/© 2026 Landvex AB · Org.nr 559141-7042 · Tyresö, Sweden/g' /tmp/fix-$file
sed -i 's/© 2026 Landvex AB · org.nr 559141-7042 · Tyresö, Sweden/© 2026 Landvex AB · Org.nr 559141-7042 · Tyresö, Sweden/g' /tmp/fix-$file
sed -i 's/© 2026 LandveX AB · Org.nr 559141-7042/© 2026 Landvex AB · Org.nr 559141-7042 · Tyresö, Sweden/g' /tmp/fix-$file
sed -i 's/© 2026 Landvex. All rights reserved./© 2026 Landvex AB · Org.nr 559141-7042 · Tyresö, Sweden/g' /tmp/fix-$file
sed -i 's/© 2026 Landvex AB  ·  Org.nr 559141-7042/© 2026 Landvex AB · Org.nr 559141-7042 · Tyresö, Sweden/g' /tmp/fix-$file
aws s3 cp /tmp/fix-$file s3://landvex-prod/$file 2>&1
rm /tmp/fix-$file
fi
done
echo "Klart!"