Make TMPDIR env variable configurable instead of it being hardcoded
Hi there, just a quick suggestion on an issue that is blocking our deployment.
It would be useful to have the TMPDIR
variable configurable, just like every other environment variable that we can see in startup scripts.
The change is fairly quick but I'm not allowed to contribute as per my company's policy so I'm opening this issue instead.
Here's the part that would require changes:
# pre-create known good tmpdir
export TMPDIR=/tmp/gitlab --> export TMPDIR="${TMPDIR:-/tmp/gitlab}"
mkdir -p -m 3770 $TMPDIR