mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 12:54:04 +02:00
Update Dockerfile
This commit is contained in:
@@ -77,7 +77,12 @@ RUN \
|
|||||||
ARG CONFIGLOCATION="/www/nextcloud/config"
|
ARG CONFIGLOCATION="/www/nextcloud/config"
|
||||||
# hadolint ignore=SC2015, SC2013, SC2086
|
# hadolint ignore=SC2015, SC2013, SC2086
|
||||||
RUN \
|
RUN \
|
||||||
for file in $(grep -Esril "/www/nextcloud/data/config" /etc /defaults); do sed -Ei "s=(/www/nextcloud/data/config)+(/| |$|\"|\')=$CONFIGLOCATION\2=g" $file; done
|
for file in $(grep -Esril "/www/nextcloud/data/config" /etc /defaults); do sed -Ei "s=(/www/nextcloud/data/config)+(/| |$|\"|\')=$CONFIGLOCATION\2=g" $file; done && \
|
||||||
|
\
|
||||||
|
# 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
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# 3 Install apps #
|
# 3 Install apps #
|
||||||
|
|||||||
Reference in New Issue
Block a user