From 2461b575c16b53eb949493dac57a3bd94b1c5ff9 Mon Sep 17 00:00:00 2001 From: Jeroen Geusebroek Date: Mon, 12 Feb 2018 13:20:11 +0100 Subject: [PATCH] Run cronjob (retrieve) as www-data --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6fdeb33..81b29ad 100644 --- a/README.md +++ b/README.md @@ -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. - */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.