diff options
| author | 2022-11-30 20:45:40 +0100 | |
|---|---|---|
| committer | 2022-11-30 20:45:40 +0100 | |
| commit | 543fa4e76c1761154801febd08400520b75143e3 (patch) | |
| tree | 5c554a1e9ea48d217edceed09284d9946b2fccb2 /Docker/entrypoint.sh | |
| parent | f41a574a9f693d81c6eabff7a05ebf3648858d5b (diff) | |
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
Diffstat (limited to 'Docker/entrypoint.sh')
| -rwxr-xr-x | Docker/entrypoint.sh | 5 |
1 files changed, 4 insertions, 1 deletions
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 |
