From 76f749ce93e387f92f58982ab9aabb6fc1ab71f0 Mon Sep 17 00:00:00 2001 From: David Jennes Date: Sat, 28 Sep 2024 04:41:58 +0200 Subject: [PATCH] Matomo: try to fix scheduler permission issue --- matomo/scripts/docker-entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matomo/scripts/docker-entrypoint.sh b/matomo/scripts/docker-entrypoint.sh index c94c242..86bb5ee 100755 --- a/matomo/scripts/docker-entrypoint.sh +++ b/matomo/scripts/docker-entrypoint.sh @@ -8,8 +8,8 @@ set -euo pipefail if [ ! -e matomo.php ]; then tar cf - --one-file-system -C /usr/src/matomo . | tar xf - - chown -R www-data:www-data . fi +chown -R www-data:www-data . ## Commands ## @@ -21,7 +21,7 @@ if [ "$1" = 'serve' ]; then # Helper to run cron jobs elif [ "$1" = 'scheduler' ]; then - exec php console core:archive --verbose --no-interaction + exec su www-data -c 'php console core:archive --verbose --no-interaction' # Init script, for use in initContainers (for example) elif [ "$1" = 'init' ]; then