Skip to content

Cron doesn't load environment variables. #383

@OptiMael

Description

@OptiMael

I define some environment variables in docker-compose.yml (e.g. THREADS=8) which get used correctly for setting up renderd.conf

sed -i -E "s/num_threads=[0-9]+/num_threads=${THREADS:-4}/g" /etc/renderd.conf

But the openstreetmap-tiles-update-expire.sh executed via Cron doesn't have access to the enviroment variables.
This results in execution of openstreetmap-tiles-update-expire.sh with default parameters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions