From 99ce42698f49b0030fc38b897b4a5ab69292e3fb Mon Sep 17 00:00:00 2001
From: laurentheirendt <laurent.heirendt@uni.lu>
Date: Thu, 25 Apr 2019 10:46:03 +0200
Subject: [PATCH] auto writing of redirect

---
 .ci/.autoRedirect | 8 --------
 .ci/deploy.sh     | 9 +++++++++
 2 files changed, 9 insertions(+), 8 deletions(-)
 delete mode 100644 .ci/.autoRedirect

diff --git a/.ci/.autoRedirect b/.ci/.autoRedirect
deleted file mode 100644
index 279624cc..00000000
--- a/.ci/.autoRedirect
+++ /dev/null
@@ -1,8 +0,0 @@
-<html>
-<head>
-<meta http-equiv="refresh" content="0; url=https://r3.pages.uni.lu/school/theme/stable"/>
-</head>
-
-<body>
-</bod>
-</html>
diff --git a/.ci/deploy.sh b/.ci/deploy.sh
index b6cb46ba..fa970a57 100644
--- a/.ci/deploy.sh
+++ b/.ci/deploy.sh
@@ -35,3 +35,12 @@ mv $BLADE-latest $rootDir/public/.
 
 # auto redirect file
 #cp .ci/.autoRedirect public/index.html
+mkdir $rootDir/public/$BLADE
+echo '<html>\n
+      <head>\n
+      <meta http-equiv="refresh" content="0; url=https://r3.pages.uni.lu/school/'$BLADE'/stable"/>\n
+      </head>\n
+      <body>\n
+      </bod>\n
+      </html>\n' > $rootDir/public/$BLADE/index.html
+
-- 
GitLab