Skip to content
Extraits de code Groupes Projets
Valider 0e38e02e rédigé par mattab's avatar mattab
Parcourir les fichiers

Fixes #4272 Not displaying messages when there are no segments to pre-process

parent 5999d449
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
#!/bin/sh -e #!/bin/sh -e
# DO NOT USE: Use archive.php instead.
# SEE DOCS: http://piwik.org/setup-auto-archiving/
# ======================================================================= # =======================================================================
# BEFORE YOU USE THIS SCRIPT:
# PLEASE DON'T.
# =======================================================================
#
#
# ==> Use archive.php instead. <==
#
# See documentation at http://piwik.org/setup-auto-archiving/
# =======================================================================
# Description # Description
# This cron script will automatically run Piwik archiving every hour. # This cron script will automatically run Piwik archiving every hour.
# The script will also run scheduled tasks configured within piwik using # The script will also run scheduled tasks configured within piwik using
...@@ -81,11 +89,18 @@ for idsite in $ID_SITES; do ...@@ -81,11 +89,18 @@ for idsite in $ID_SITES; do
for segment in $SEGMENTS_TO_ARCHIVE; do for segment in $SEGMENTS_TO_ARCHIVE; do
if test $segment != "value"; then if test $segment != "value"; then
echo "" # Ignore "No data available" response when there are no segment to pre-process
echo " - Archiving for visitor segment $segment ..." if test $segment != "No"; then
CMD_ARCHIVE_SEGMENT="${CMD}&segment=$segment" if test $segment != "data"; then
$CMD_ARCHIVE_SEGMENT if test $segment != "available"; then
fi echo ""
echo " - Archiving for visitor segment $segment ..."
CMD_ARCHIVE_SEGMENT="${CMD}&segment=$segment"
$CMD_ARCHIVE_SEGMENT
fi
fi
fi
fi
done done
done done
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter