.
All checks were successful
/ ssh-server (push) Successful in 25s

This commit is contained in:
2025-09-07 09:43:48 +00:00
parent ed5c86ffe6
commit 220ae4778a
8 changed files with 87 additions and 63 deletions

View File

@@ -1,6 +1,6 @@
import os
import yaml
def is_debugging(): return os.getenv("CONFIGURATION") == "Debug"
def is_debugging(): return os.getenv("CONFIGURATION", "").lower() == "debug"
file_path="/etc/app/config/config.yaml"
@@ -10,7 +10,7 @@ def config_exits():
return get_config() is not None
def sshserver_enabled():
return not is_debugging() or os.getenv("SSH_SERVER_ENABLED") == "true"
return not is_debugging() or os.getenv("SSH_SERVER_ENABLED", "false").lower() == "true"
def get_config():
global config