mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 18:31:02 +01:00
Allow custom config.yaml
https://github.com/alexbelgium/hassio-addons/issues/768
This commit is contained in:
@@ -91,7 +91,7 @@ RUN if [ -d /etc/cont-init.d ]; then chmod -R 755 /etc/cont-init.d; fi && \
|
||||
if [ -f /entrypoint.sh ]; then chmod 755 /entrypoint.sh; fi
|
||||
|
||||
# Modules
|
||||
ARG MODULES="00-banner.sh 01-custom_script.sh 92-local_mounts.sh 92-smb_mounts.sh"
|
||||
ARG MODULES="00-banner.sh 01-custom_script.sh 90-config_yaml.sh 92-local_mounts.sh 92-smb_mounts.sh"
|
||||
|
||||
# Automatic modules download
|
||||
RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get install -yqq --no-install-recommends bash || apk add --no-cache bash) >/dev/null; fi \
|
||||
@@ -128,8 +128,11 @@ RUN \
|
||||
# Correct nginx files
|
||||
sed -i "/Strict-Transport-Security/d" /defaults/nginx/site-confs/default.conf.sample && \
|
||||
sed -i '1h;1!H;$!d;g;s/\(.*\)}/\1/' /defaults/nginx/site-confs/default.conf.sample && \
|
||||
cat /defaults/nginx_addition >> /defaults/nginx/site-confs/default.conf.sample
|
||||
|
||||
cat /defaults/nginx_addition >> /defaults/nginx/site-confs/default.conf.sample \
|
||||
\
|
||||
# Correct config.yaml
|
||||
sed -i 's|CONFIGSOURCE=$(bashio::config "CONFIG_LOCATION")|CONFIGSOURCE=/config/addons_config/nextcloud/config.yaml|g' /etc/cont-init.d/90-config_yaml.sh
|
||||
|
||||
#RUN chmod 777 /entrypoint.sh
|
||||
#WORKDIR /
|
||||
#ENTRYPOINT [ "/usr/bin/env" ]
|
||||
|
||||
Reference in New Issue
Block a user