From 278b71f795a9e2c0783addd24b07f4732fc5b637 Mon Sep 17 00:00:00 2001 From: dougbradbury Date: Tue, 23 Jul 2024 14:36:44 -0500 Subject: [PATCH 1/2] run security file creation on apache launch --- docker-entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 53289bea..a480f2fb 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -56,4 +56,6 @@ if [ ! -e matomo.php ]; then chown -R "$user":"$group" . fi +/var/www/html/console core:create-security-files + exec "$@" From a3966b0ec3462a4d29cf7d77df9944394e518356 Mon Sep 17 00:00:00 2001 From: Doug Bradbury Date: Tue, 24 Sep 2024 16:08:12 -0500 Subject: [PATCH 2/2] Update docker-entrypoint.sh Co-authored-by: J0WI --- docker-entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index a480f2fb..feece283 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -56,6 +56,8 @@ if [ ! -e matomo.php ]; then chown -R "$user":"$group" . fi -/var/www/html/console core:create-security-files +if expr "$1" : "apache" 1>/dev/null; then + /var/www/html/console core:create-security-files +fi exec "$@"