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"