diff --git a/nextcloud/Dockerfile b/nextcloud/Dockerfile index 8a4ead251..a75b5ea0b 100644 --- a/nextcloud/Dockerfile +++ b/nextcloud/Dockerfile @@ -30,7 +30,6 @@ ENV S6_CMD_WAIT_FOR_SERVICES=1 \ S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \ S6_SERVICES_GRACETIME=0 - # Specific modifications ARG CONFIGLOCATION="/share/nextcloud" # hadolint ignore=SC2015,SC2086 @@ -129,7 +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 && \ + \ + # Add entrypoint + sed -i "1a if [ ! -f /started ]; then touch /started && exit 0; fi" ha_entrypoint.sh && \ + sed -i "1a /./ha_entrypoint.sh" /etc/s6-overlay/s6-rc.d/init-adduser/run ############ # 5 Labels #