actinia-org / actinia-core

Actinia Core is an open source REST API for scalable, distributed, high performance processing of geographical data that uses mainly GRASS GIS for computational tasks (DOI: https://doi.org/10.5281/zenodo.5879231) | Tutorial: https://actinia-org.github.io/actinia-core/ | Docker: https://hub.docker.com/r/mundialis/actinia-core
https://actinia.mundialis.de/
GNU General Public License v3.0
78 stars 23 forks source link

fix HOME env #459

Closed anikaweinmann closed 1 year ago

anikaweinmann commented 1 year ago

The HOME environment variable was set to /tmp/:/root to fix this the env attributes are now subdivided into:

  1. variables where use self.env and enviroment variable values (used for ["PATH", "PYTHONPATH"])
  2. use self.env value for the rest (HOME is before set to $HOME if $HOME is set)

resulting in:

GISBASE=/usr/local/grass
GISRC=/tmp/tmplc_46gr7/gisrc
LD_LIBRARY_PATH=/usr/local/grass/lib
GRASS_ADDON_PATH=/root/.grass8/addons/
GRASS_VERSION=7.7.svn
PYTHONPATH=:/usr/local/grass/etc/python
GRASS_MESSAGE_FORMAT=plain
GRASS_SKIP_MAPSET_OWNER_CHECK=1
GRASS_TGIS_RAISE_ON_ERROR=1
GIS_LOCK=48
HOME=/root
GRASS_ADDON_BASE=/root/.grass8/addons/
PATH=/usr/local/grass/bin:/usr/local/grass/scripts:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin