From cad2babbca0e3c5b509a81bc967e309e72ccd15a Mon Sep 17 00:00:00 2001 From: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com> Date: Sun, 21 May 2023 00:07:09 +0200 Subject: Add env var to not replace systemd service file (#462) --- backend/localplatform.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'backend/localplatform.py') diff --git a/backend/localplatform.py b/backend/localplatform.py index a788d59f..5febfcaf 100644 --- a/backend/localplatform.py +++ b/backend/localplatform.py @@ -32,7 +32,10 @@ def get_server_port() -> int: return int(os.getenv("SERVER_PORT", "1337")) def get_live_reload() -> bool: - os.getenv("LIVE_RELOAD", "1") == "1" + return os.getenv("LIVE_RELOAD", "1") == "1" + +def get_keep_systemd_service() -> bool: + return os.getenv("KEEP_SYSTEMD_SERVICE", "0") == "1" def get_log_level() -> int: return {"CRITICAL": 50, "ERROR": 40, "WARNING": 30, "INFO": 20, "DEBUG": 10}[ -- cgit v1.2.3