mirror of
/repos/baseimage-docker.git
synced 2025-12-30 08:01:31 +01:00
Don't write HOME env variable
Loading HOME variable breaks multi-user container (i.e. logging as postgres user) if you try to load variables via `/etc/container_environment.sh`.
This commit is contained in:
parent
0325abf74e
commit
5b403fe06c
@ -73,6 +73,8 @@ def import_envvars(clear_existing_environment = True, override_existing_environm
|
||||
def export_envvars(to_dir = True):
|
||||
shell_dump = ""
|
||||
for name, value in os.environ.items():
|
||||
if name == 'HOME':
|
||||
break
|
||||
if to_dir:
|
||||
with open("/etc/container_environment/" + name, "w") as f:
|
||||
f.write(value)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user