@@ -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
|
||||
|
||||
Reference in New Issue
Block a user