From 6e8bf0a3551dded757c970132876f1898735d676 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Mon, 15 Apr 2019 20:31:13 +0000 Subject: [PATCH] Fix custom config --- Dockerfile | 2 +- start.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6734f7c..b298819 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ] diff --git a/start.sh b/start.sh index 87f5a35..6e2fa98 100755 --- a/start.sh +++ b/start.sh @@ -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