From d9361a6263ea51dd54d5693bcd7587dfe5b66d33 Mon Sep 17 00:00:00 2001 From: andryyy Date: Sat, 1 Jun 2019 21:22:58 +0200 Subject: [PATCH] [PHP-FPM] Add Q_MAX_AGE key and set to 365 days if missing --- data/Dockerfiles/phpfpm/docker-entrypoint.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/data/Dockerfiles/phpfpm/docker-entrypoint.sh b/data/Dockerfiles/phpfpm/docker-entrypoint.sh index bf055f3a..a6d5e731 100755 --- a/data/Dockerfiles/phpfpm/docker-entrypoint.sh +++ b/data/Dockerfiles/phpfpm/docker-entrypoint.sh @@ -19,6 +19,12 @@ if [[ -z $(redis-cli --raw -h redis-mailcow GET Q_RELEASE_FORMAT) ]]; then redis-cli --raw -h redis-mailcow SET Q_RELEASE_FORMAT raw fi +# Set max age of q items - if unset + +if [[ -z $(redis-cli --raw -h redis-mailcow GET Q_MAX_AGE) ]]; then + redis-cli --raw -h redis-mailcow SET Q_MAX_AGE 365 +fi + # Check of mysql_upgrade CONTAINER_ID=