From b06ffd709eaab07374d45b29f69dc7e422eb852d Mon Sep 17 00:00:00 2001 From: 76rhodan Date: Thu, 22 Feb 2024 19:18:06 +0000 Subject: [PATCH] added thunderforest api key --- rootfs/etc/s6-overlay/scripts/61-layer | 29 +++++++++++++++++++------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/rootfs/etc/s6-overlay/scripts/61-layer b/rootfs/etc/s6-overlay/scripts/61-layer index 3be66c2..cdbf68d 100755 --- a/rootfs/etc/s6-overlay/scripts/61-layer +++ b/rootfs/etc/s6-overlay/scripts/61-layer @@ -98,14 +98,27 @@ if [[ -n "${VRS_ENHANCED_LAYERS_COUNTRY}" ]] fi if [[ -n "${VRS_ENHANCED_LAYERS_STADIA_APIKEY}" ]] then - echo "[$APPNAME][$(date)] Injecting Stadia APIkey" - if sed -i -e "s/##STADIAKEY##/${VRS_ENHANCED_LAYERS_STADIA_APIKEY}/g" ${VRS_EXTENSION_DIR}/EndOfBody.html &&\ - echo "[$APPNAME][$(date)] Injecting Stadia APIkey - OK" - else - echo "[$APPNAME][$(date)] Injecting Stadia APIkey - Fail" - fi - else - echo "[$APPNAME][$(date)] Stadia APIkey not set in yaml" + echo "[$APPNAME][$(date)] Found Stadia APIkey - injecting" + if sed -i -e "s/##STADIAKEY##/${VRS_ENHANCED_LAYERS_STADIA_APIKEY}/g" ${VRS_EXTENSION_DIR}/EndOfBody.html + then + echo "[$APPNAME][$(date)] Injecting Stadia APIkey - OK" + else + echo "[$APPNAME][$(date)] Injecting Stadia APIkey - Fail" + fi + else + echo "[$APPNAME][$(date)] Stadia APIkey not set in yaml" + fi + if [[ -n "${VRS_ENHANCED_LAYERS_THUNDERFOREST_APIKEY}" ]] + then + echo "[$APPNAME][$(date)] Found Thunderforest APIkey - injecting" + if sed -i -e "s/##THUNDERFORESTKEY##/${VRS_ENHANCED_LAYERS_THUNDERFOREST_APIKEY}/g" ${VRS_EXTENSION_DIR}/EndOfBody.html + then + echo "[$APPNAME][$(date)] Injecting Thunderforest APIkey - OK" + else + echo "[$APPNAME][$(date)] Injecting Thunderforest APIkey - Fail" + fi + else + echo "[$APPNAME][$(date)] Thunderforest APIkey not set in yaml" fi if [[ -n "${VRS_ENHANCED_LAYERS_CONFIG}" ]] then