From c64c7933e759f165635e3d0a621a84dfb35c7839 Mon Sep 17 00:00:00 2001 From: "Robin C. Ladiges" Date: Wed, 9 Aug 2023 19:30:15 +0200 Subject: [PATCH] save the environment variables to be used by the cron process This commit fixes #383 --- run.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/run.sh b/run.sh index ddd9af9..365ee2d 100755 --- a/run.sh +++ b/run.sh @@ -172,6 +172,7 @@ if [ "$1" == "run" ]; then # start cron job to trigger consecutive updates if [ "${UPDATES:-}" == "enabled" ] || [ "${UPDATES:-}" == "1" ]; then + printenv > /etc/environment /etc/init.d/cron start sudo -u renderer touch /var/log/tiles/run.log; tail -f /var/log/tiles/run.log >> /proc/1/fd/1 & sudo -u renderer touch /var/log/tiles/osmosis.log; tail -f /var/log/tiles/osmosis.log >> /proc/1/fd/1 &