SPRING_DATADIR environment variable overrides ALL other ways to set data directories
SPRING_DATADIR
Moderator: Moderators
SPRING_DATADIR
What does this mean, in a practical sense?
-
- Spring Developer
- Posts: 1254
- Joined: 24 Jun 2007, 08:34
Re: SPRING_DATADIR
That the directorie(s) specified in SPRING_DATADIR environment variable are checked first when looking for data.
Because the write directory will be the first dir with writing permissions, the engine will choose the one from SPRING_DATADIR if it is writable.
Because the write directory will be the first dir with writing permissions, the engine will choose the one from SPRING_DATADIR if it is writable.
Re: SPRING_DATADIR
I made the change because SPRING_DATADIR is the only practical way to overrule the data dir setting from e.g. a script that starts spring. (I don't count sed -i in config files as a practical way
)
For normal user it doesn't change anything at all.

For normal user it doesn't change anything at all.
Re: SPRING_DATADIR
Does this affect windows users at all?
Re: SPRING_DATADIR
Yes, they can override the data directory now too with the SPRING_DATADIR environment variable...