Skip to content

Commit

Permalink
added thunderforest api key
Browse files Browse the repository at this point in the history
  • Loading branch information
76rhodan committed Feb 22, 2024
1 parent 885183c commit b06ffd7
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions rootfs/etc/s6-overlay/scripts/61-layer
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b06ffd7

Please sign in to comment.