Fix custom config

This commit is contained in:
IamTheFij 2019-04-15 20:31:13 +00:00
parent 0fe0f7c405
commit 6e8bf0a355
2 changed files with 2 additions and 3 deletions

View File

@ -9,6 +9,6 @@ RUN npm install authelia@${VERSION}
EXPOSE 3000
COPY start.sh config.template.yml ./yaml-override.js /app/code/
COPY start.sh config.template.yml config.custom_template.yml ./yaml-override.js /app/code/
CMD [ "/app/code/start.sh" ]

View File

@ -36,8 +36,7 @@ sed -e "s|##DEFAULT_REDIRECT_URL|${WEBADMIN_ORIGIN}|" \
# Create override config.yml file if not exists
if [[ ! -f /app/data/config.yml ]]; then
cp /app/code/config.custom_template.yml > /app/data/config.yml
echo "# Add additional customizations in this file" > /app/data/config.yml
cp /app/code/config.custom_template.yml /app/data/config.yml
fi
# merge yaml files