Skip to content

Commit

Permalink
Matomo: try to fix scheduler permission issue
Browse files Browse the repository at this point in the history
  • Loading branch information
djbe committed Sep 28, 2024
1 parent ff2db96 commit 76f749c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions matomo/scripts/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ##
Expand All @@ -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
Expand Down

0 comments on commit 76f749c

Please sign in to comment.