Skip to content

Commit

Permalink
Merge pull request #225 from gisaia/feature/settings_url
Browse files Browse the repository at this point in the history
Add setting url env variable
  • Loading branch information
MohamedHamouGisaia authored Aug 20, 2020
2 parents bd61ca4 + 397488b commit 84046af
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/start.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
#!/bin/sh

fetchSettings(){
echo "Download the WUI settings file from \"${ARLAS_SETTINGS_URL}\" ..."
curl ${ARLAS_SETTINGS_URL} -o /usr/share/nginx/html/settings.yaml && echo "settings.yaml file downloaded with success." || (echo "Failed to download the settings.yaml file."; exit 1)
}

### URL to WUI SETTINGS
if [ -z "${ARLAS_SETTINGS_URL}" ]; then
echo "The default WUI container settings.yaml file is used"
else
fetchSettings;
fi

fetchConfiguration(){
echo "Download the CATALOG configuration file from \"${ARLAS_WUI_CONFIGURATION_URL}\" ..."
curl ${ARLAS_WUI_CONFIGURATION_URL} -o /usr/share/nginx/html/config.json && echo "Configuration file downloaded with success." || (echo "Failed to download the configuration file."; exit 1)
Expand Down

0 comments on commit 84046af

Please sign in to comment.