From b9f0a04e9356aa72348ce84f755401b35119a0f1 Mon Sep 17 00:00:00 2001 From: 7u83 <7u83@mail.ru> Date: Fri, 16 Oct 2020 13:06:21 +0200 Subject: [PATCH] Creates a cron job to process matomo data --- manifests/init.pp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index bf550ef..1e96e6a 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -285,4 +285,14 @@ class wmdeit_piwik( } + cron {"refresh matomo": + ensure => present, + hour => '*', + minute => '*/15', + command => "/usr/bin/php $wwwdir/piwik/console core:archive --url https://$domain", + user => "$wwwuser" + } + + + }