From 11538dfe0ab5ec6ba8cba025e1919355f45b441c Mon Sep 17 00:00:00 2001 From: skybach Date: Sun, 20 Apr 2014 01:01:02 +0800 Subject: [PATCH 1/2] Update linux_setup.sh cron job failed to run. db class not found if cron job never cd into $PHPMINER_PATH. --- linux_setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux_setup.sh b/linux_setup.sh index 3746f8a..53ec5e5 100644 --- a/linux_setup.sh +++ b/linux_setup.sh @@ -98,7 +98,7 @@ echo "chown $APACHE_USER:$APACHE_GROUP $PHPMINER_DB_CFG_PATH" | sh echo "Install cronjob." echo "# /etc/cron.d/phpminer: crontab fragment for phpminer" > /etc/cron.d/phpminer echo "# This will run the cronjob script for phpminer to send notifications and other periodic tasks." >> /etc/cron.d/phpminer -echo "* * * * * $APACHE_USER php -f $PHPMINER_PATH/cron.php" >> /etc/cron.d/phpminer +echo "* * * * * $APACHE_USER cd $PHPMINER_PATH/; php -f cron.php" >> /etc/cron.d/phpminer # Install apache vhost echo "Install apache2 vhost." @@ -145,4 +145,4 @@ echo "The domain for the hostfile is $DOMAIN" echo "" echo "example entry for hostfile is '127.0.0.1 $DOMAIN'" echo "" -echo "After installing all phpminer_rpclient's you can open phpminer within a browser at http://$DOMAIN:$APACHE_PORT" \ No newline at end of file +echo "After installing all phpminer_rpclient's you can open phpminer within a browser at http://$DOMAIN:$APACHE_PORT" From 430276bd2e06b624cd2c4e4d643029f06d917160 Mon Sep 17 00:00:00 2001 From: skybach Date: Sun, 20 Apr 2014 01:19:56 +0800 Subject: [PATCH 2/2] Update linux_setup.sh