Ticket #831: 831-archive.sh-against-0.4.1-1.patch

File 831-archive.sh-against-0.4.1-1.patch, 0.6 KB (added by Uli, 3 years ago)

Patch against 0.4.1

  • misc/cron/archive.sh

    old new  
    2020# enable_browser_archiving_triggering = false 
    2121 
    2222PHP_BIN=`which php5` 
     23if test -z $PHP_BIN; then 
     24  # Probably known as 'php' 
     25  PHP_BIN=`which php` 
     26  if test -z $PHP_BIN; then 
     27     # No php available? 
     28     `logger -s -t "Piwik" "ERROR: No binary for php available! Aborting archiving` 
     29     exit 
     30  fi 
     31fi 
    2332PIWIK_CRON_FOLDER=`dirname $(readlink -f ${0})` 
    2433PIWIK_PATH="$PIWIK_CRON_FOLDER"/../../index.php 
    2534PIWIK_CONFIG="$PIWIK_CRON_FOLDER"/../../config/config.ini.php