Run cronjob (retrieve) as www-data

This commit is contained in:
Jeroen Geusebroek 2018-02-12 13:20:11 +01:00
parent b818e97f11
commit 2461b575c1

View File

@ -47,7 +47,7 @@ You should now be able to reach the spotweb interface on port 80.
To enable automatic retreiving, you need to setup a cronjob on the docker host. To enable automatic retreiving, you need to setup a cronjob on the docker host.
*/15 * * * * docker exec spotweb /usr/bin/php /var/www/spotweb/retrieve.php >/dev/null 2>&1 */15 * * * * docker exec spotweb su -l www-data -s /usr/bin/php /var/www/spotweb/retrieve.php >/dev/null 2>&1
This example will retrieve new spots every 15 minutes. This example will retrieve new spots every 15 minutes.