save the environment variables to be used by the cron process

This commit fixes #383
This commit is contained in:
Robin C. Ladiges committed 2023-08-09 19:30:15 +02:00
1 parent 6088b9b37f
commit c64c7933e7
1 file changed
+1
+1
View File
@@ -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 &