Skip to content

Commit 5cd98a1

Browse files
committed
actually copy the environment
1 parent eef7d57 commit 5cd98a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/start.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,10 +656,10 @@ def main():
656656
logger.info("Starting Tomcat")
657657
tomcat_temp = os.path.join(OPENGROK_DATA_ROOT, "tomcat_temp")
658658
os.makedirs(tomcat_temp, exist_ok=True)
659-
tomcat_env = os.environ
659+
tomcat_env = dict(os.environ)
660660
tomcat_env["CATALINA_TMPDIR"] = tomcat_temp
661661
tomcat_popen = subprocess.Popen(
662-
[os.path.join(tomcat_root, "bin", "catalina.sh"), "run"]
662+
[os.path.join(tomcat_root, "bin", "catalina.sh"), "run"], env=tomcat_env
663663
)
664664

665665
sigset = set()

0 commit comments

Comments
 (0)