From 543fa4e76c1761154801febd08400520b75143e3 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Wed, 30 Nov 2022 20:45:40 +0100 Subject: Docker uniform timezone behaviour (#4905) * Docker Alpine timezone for :newest and :oldest Follow-up of https://github.com/FreshRSS/FreshRSS/pull/4903 Forgot the development images Newest and Oldest * Uniform timezone behaviour * shellcheck * A bit more documentation --- Docker/entrypoint.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Docker/entrypoint.sh') diff --git a/Docker/entrypoint.sh b/Docker/entrypoint.sh index 82c2e358e..00e80f629 100755 --- a/Docker/entrypoint.sh +++ b/Docker/entrypoint.sh @@ -1,11 +1,14 @@ #!/bin/sh -php -f ./cli/prepare.php >/dev/null +ln -snf "/usr/share/zoneinfo/$TZ" /etc/localtime +echo "$TZ" >/etc/timezone find /etc/php*/ -type f -name php.ini -exec sed -r -i "\\#^;?date.timezone#s#^.*#date.timezone = $TZ#" {} \; find /etc/php*/ -type f -name php.ini -exec sed -r -i "\\#^;?post_max_size#s#^.*#post_max_size = 32M#" {} \; find /etc/php*/ -type f -name php.ini -exec sed -r -i "\\#^;?upload_max_filesize#s#^.*#upload_max_filesize = 32M#" {} \; +php -f ./cli/prepare.php >/dev/null + if [ -n "$LISTEN" ]; then find /etc/apache2/ -type f -name FreshRSS.Apache.conf -exec sed -r -i "\\#^Listen#s#^.*#Listen $LISTEN#" {} \; fi -- cgit v1.2.3