From 19d59a18cf0e0f54535fa800b3412c2e31edb98c Mon Sep 17 00:00:00 2001 From: Robin Syl Date: Tue, 22 Oct 2024 18:43:55 +0200 Subject: [PATCH] Support reading env vars on Podman --- server/szurubooru/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/szurubooru/config.py b/server/szurubooru/config.py index 8f87642fe..97f57298d 100644 --- a/server/szurubooru/config.py +++ b/server/szurubooru/config.py @@ -57,7 +57,7 @@ def _read_config() -> Dict: logger.warning( "'config.yaml' should be a file, not a directory, skipping" ) - if os.path.exists("/.dockerenv"): + if os.path.exists("/.dockerenv") or os.path.exists("/run/.containerenv"): ret = _merge(ret, _docker_config()) return ret