From 81b00bd8aacb0627ebb810b9100ee800bf53326f Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 14 Nov 2021 23:25:27 +0100 Subject: Docker: Move logic to disable FreshRSS updates (#3973) Should be done during build and not during entrypoint, to avoid modifying a potential volume (e.g. mounting the source code as a volume is used during development). --- Docker/Dockerfile-Oldest | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Docker/Dockerfile-Oldest') diff --git a/Docker/Dockerfile-Oldest b/Docker/Dockerfile-Oldest index e0d9b5e23..51649869b 100644 --- a/Docker/Dockerfile-Oldest +++ b/Docker/Dockerfile-Oldest @@ -39,6 +39,8 @@ RUN rm -f /etc/apache2/conf.d/languages.conf /etc/apache2/conf.d/info.conf \ sed -r -i "/^\s*(CustomLog|ErrorLog|Listen) /s/^/#/" \ /etc/apache2/httpd.conf && \ if [ ! -f /usr/bin/php ]; then ln -s /usr/bin/php7 /usr/bin/php; else true; fi && \ + # Disable built-in updates when using Docker, as the full image is supposed to be updated instead. + sed -r -i "\\#disable_update#s#^.*#\t'disable_update' => true,#" ./config.default.php && \ touch /var/www/FreshRSS/Docker/env.txt && \ echo "27,57 * * * * . /var/www/FreshRSS/Docker/env.txt; \ su apache -s /bin/sh -c 'php /var/www/FreshRSS/app/actualize_script.php' \ -- cgit v1.2.3