Update Dockerfile

This commit is contained in:
Alexandre
2023-03-05 19:47:43 +01:00
committed by GitHub
parent a283bb5653
commit dd0e7b33ff

View File

@@ -31,7 +31,7 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \
# Specific modifications # Specific modifications
ARG CONFIGLOCATION="/share/nextcloud" ARG CONFIGLOCATION="/share/nextcloud"
# hadolint ignore=SC2015 # hadolint ignore=SC2015,SC2086
RUN \ RUN \
# Change default data location # Change default data location
for file in $(grep -Esril "/data" /etc /defaults); do sed -Ei "s=(/data)+(/| |$|\"|\')=$CONFIGLOCATION\2=g" $file; done && \ for file in $(grep -Esril "/data" /etc /defaults); do sed -Ei "s=(/data)+(/| |$|\"|\')=$CONFIGLOCATION\2=g" $file; done && \