Skip to content

Commit

Permalink
Merge pull request #100 from 76rhodan/main
Browse files Browse the repository at this point in the history
Added envars for stadia and thunderforest
  • Loading branch information
76rhodan committed Feb 22, 2024
2 parents cba5167 + b06ffd7 commit 32ea431
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions rootfs/etc/s6-overlay/scripts/61-layer
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,30 @@ if [[ -n "${VRS_ENHANCED_LAYERS_COUNTRY}" ]]
echo "[$APPNAME][$(date)] Enhanced Layers API Keys config injection - Failure"
fi
fi
if [[ -n "${VRS_ENHANCED_LAYERS_STADIA_APIKEY}" ]]
then
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
#shellcheck disable=SC2001
Expand Down

0 comments on commit 32ea431

Please sign in to comment.