Fix custom config
This commit is contained in:
parent
0fe0f7c405
commit
6e8bf0a355
@ -9,6 +9,6 @@ RUN npm install authelia@${VERSION}
|
|||||||
|
|
||||||
EXPOSE 3000
|
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" ]
|
CMD [ "/app/code/start.sh" ]
|
||||||
|
3
start.sh
3
start.sh
@ -36,8 +36,7 @@ sed -e "s|##DEFAULT_REDIRECT_URL|${WEBADMIN_ORIGIN}|" \
|
|||||||
|
|
||||||
# Create override config.yml file if not exists
|
# Create override config.yml file if not exists
|
||||||
if [[ ! -f /app/data/config.yml ]]; then
|
if [[ ! -f /app/data/config.yml ]]; then
|
||||||
cp /app/code/config.custom_template.yml > /app/data/config.yml
|
cp /app/code/config.custom_template.yml /app/data/config.yml
|
||||||
echo "# Add additional customizations in this file" > /app/data/config.yml
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# merge yaml files
|
# merge yaml files
|
||||||
|
Loading…
Reference in New Issue
Block a user