Added if statements for specific Projects
This commit is contained in:
parent
8efc8069b8
commit
c9709f719d
|
@ -1,5 +1,59 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ ! -d ./landing ]
|
||||||
|
then
|
||||||
|
mkdir landing
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f ./landing/index.html ]
|
||||||
|
then
|
||||||
|
touch index.html
|
||||||
|
fi
|
||||||
|
|
||||||
|
CENTRAL_SERVICES=" <tr>
|
||||||
|
<td>CCP-IT</td>
|
||||||
|
<td><a href=\"https://monitor.vmitro.de/icingaweb2/dashboard\">Monitoring Service</td>
|
||||||
|
</tr>"
|
||||||
|
|
||||||
|
LOCAL_SERVICES=" <tr>
|
||||||
|
<td>Bridgehead</td>
|
||||||
|
<td>Reverse Proxy <a href=\"http://${HOST}:8080/\">Traefik</a></td>
|
||||||
|
</tr>"
|
||||||
|
|
||||||
|
if [ "$project" = "dktk" ] || [ "$project" = "c4" ] || [ "$project" = "dktk-fed" ]
|
||||||
|
then
|
||||||
|
CENTRAL_SERVICES+=" <tr>
|
||||||
|
<td>CCP-IT</td>
|
||||||
|
<td><a href=\"https://patientlist.ccp-it.dktk.dkfz.de\">Zentrale Patientenliste</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>CCP-IT</td>
|
||||||
|
<td><a href=\"https://decentralsearch.ccp-it.dktk.dkfz.de\">Dezentrale Suche</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>CCP-IT</td>
|
||||||
|
<td><a href=\"https://centralsearch.ccp-it.dktk.dkfz.de\">Zentrale Suche</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>CCP-IT</td>
|
||||||
|
<td><a href=\"https://deployment.ccp-it.dktk.dkfz.de\">Deployment-Server</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>CCP-IT</td>
|
||||||
|
<td><a href=\"https://dktk-kne.kgu.de\">Zentraler Kontrollnummernerzeuger</td>
|
||||||
|
</tr>
|
||||||
|
"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$project" = "dktk-fed" ]
|
||||||
|
then
|
||||||
|
LOCAL_SERVICES+=" <tr>
|
||||||
|
<td>DKTK</td>
|
||||||
|
<td><a href=\"http://${HOST}/dktk-localdatamanagement/fhir/\">Blaze</a></td>
|
||||||
|
</tr>
|
||||||
|
"
|
||||||
|
fi
|
||||||
|
|
||||||
cat > ./landing/index.html <<EOL
|
cat > ./landing/index.html <<EOL
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
|
@ -17,7 +71,7 @@ cat > ./landing/index.html <<EOL
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body class="d-flex flex-column min-vh-100">
|
||||||
|
|
||||||
<nav class="navbar navbar-light" style="background-color: #aad7f6;">
|
<nav class="navbar navbar-light" style="background-color: #aad7f6;">
|
||||||
<h2 class="pb-2 border-bottom">Bridgehead ${site_name}</h2>
|
<h2 class="pb-2 border-bottom">Bridgehead ${site_name}</h2>
|
||||||
|
@ -34,26 +88,7 @@ cat > ./landing/index.html <<EOL
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
${CENTRAL_SERVICES}
|
||||||
<td>CCP-IT</td>
|
|
||||||
<td><a href="https://patientlist.ccp-it.dktk.dkfz.de">Zentrale Patientenliste</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>CCP-IT</td>
|
|
||||||
<td><a href="https://decentralsearch.ccp-it.dktk.dkfz.de">Dezentrale Suche</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>CCP-IT</td>
|
|
||||||
<td><a href="https://centralsearch.ccp-it.dktk.dkfz.de">Zentrale Suche</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>CCP-IT</td>
|
|
||||||
<td><a href="https://deployment.ccp-it.dktk.dkfz.de">Deployment-Server</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>CCP-IT</td>
|
|
||||||
<td><a href="https://dktk-kne.kgu.de">Zentraler Kontrollnummernerzeuger</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -68,19 +103,12 @@ cat > ./landing/index.html <<EOL
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
${LOCAL_SERVICES}
|
||||||
<td>Bridgehead</td>
|
|
||||||
<td>Reverse Proxy <a href="http://${HOST}:8080/">Traefik</a></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>DKTK</td>
|
|
||||||
<td><a href="http://${HOST}/dktk-localdatamanagement/fhir/">Blaze</a></td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<footer class="footer mt-auto py-3 ">
|
<footer class="footer mt-auto py-3">
|
||||||
<a href="https://dktk.dkfz.de/"><img src="https://www.oncoray.de/fileadmin/files/bilder_gruppen/DKTK/Logo_DKTK_neu_2016.jpg" height="10%" width="30%"></a> DKTK 2022
|
<a href="https://dktk.dkfz.de/"><img src="https://www.oncoray.de/fileadmin/files/bilder_gruppen/DKTK/Logo_DKTK_neu_2016.jpg" style="max-width: 30%; height: auto;"></a> DKTK 2022<span style="float: right;"><a href="https://github.com/samply/bridgehead"><button type="button" class="btn btn-primary">Documentaion</button></a></span>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue