save the environment variables to be used by the cron process

This commit fixes #383
This commit is contained in:
Robin C. Ladiges 2023-08-09 19:30:15 +02:00
parent 6088b9b37f
commit c64c7933e7
No known key found for this signature in database
GPG Key ID: B494D3DF92661B99

1
run.sh
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 &