From 58afb616cdbe525afa1866748f639a267efcbe97 Mon Sep 17 00:00:00 2001 From: Sebastian Gronewold Date: Tue, 29 Jul 2014 19:45:27 +0200 Subject: [PATCH] Added missing cachebuster replacement for landing page variant (need to find a better solution for the future) --- bin/compile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/compile b/bin/compile index 95c2b99e0..e1b7eb1c2 100644 --- a/bin/compile +++ b/bin/compile @@ -591,6 +591,14 @@ if [ -r /app/web/landingPage.html ]; then sed --regexp-extended --in-place -e "s/\{cachebuster\}|c=[0-9]+/c=\${timestamp}/" /app/web/landingPage.html sed --regexp-extended --in-place -e "s/\{KISSMETRICS_ID\}/\${KISSMETRICS_ID}/" /app/web/landingPage.html fi + +if [ -r /app/web/abnehmen.html ]; then + echo "Found landingPage - patching CDN & Kissmetrics ID into assets ..." + sed --regexp-extended --in-place -e "s/(https?:\/\/[^\/]*)?\/assets\//https:\/\/\${CDN_BASE_URL_HTTPS_STATIC}\/assets\//" /app/web/abnehmen.html + sed --regexp-extended --in-place -e "s/\{cachebuster\}|c=[0-9]+/c=\${timestamp}/" /app/web/abnehmen.html + sed --regexp-extended --in-place -e "s/\{KISSMETRICS_ID\}/\${KISSMETRICS_ID}/" /app/web/abnehmen.html +fi + if [ -r /app/web/lp ]; then echo "Found individualized landingPages - patching CDN & Kissmetrics ID into assets ..." sed --regexp-extended --in-place -e "s/(https?:\/\/[^\/]*)?\/assets\//https:\/\/\${CDN_BASE_URL_HTTPS_STATIC}\/assets\//" /app/web/lp/*.html