mirror of
https://github.com/jgeusebroek/docker-spotweb.git
synced 2025-06-06 07:37:25 +02:00
Run cronjob (retrieve) as www-data
This commit is contained in:
parent
b818e97f11
commit
2461b575c1
@ -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.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user