fix: Make sure entrypoint works without user-provided configuration

This commit is contained in:
Glenn Y. Rolland 2022-04-26 11:24:59 +02:00
parent ccade28d49
commit aca590ed4a

View file

@ -33,13 +33,14 @@ chown -R "$EXT_UID:$EXT_GID" /home/appuser
# Patch mkdocs configuration
# set -x
if [ -f mkdocs-patch.yml ]; then
# bash
# patch reference mkdocs with user-provided options
yq eval-all '. as $item ireduce ({}; . * $item)' \
mkdocs-source.yml \
mkdocs-patch.yml \
> mkdocs.yml
else
cp mkdocs-patch.yml mkdocs.yml
# use reference mkdocs only (no options)
ln -s mkdocs-source.yml mkdocs.yml
fi
# set +x