release 0.0.1
Установил путь до конфига для линукса
This commit is contained in:
@@ -98,6 +98,7 @@ class ServiceFunctions:
|
||||
|
||||
|
||||
def load_config(self):
|
||||
|
||||
"""
|
||||
Загружает настройки приложения из файла config.conf.
|
||||
|
||||
@@ -112,7 +113,8 @@ class ServiceFunctions:
|
||||
FileNotFoundError: Если файл config.conf не найден.
|
||||
"""
|
||||
|
||||
config_path = Path(__file__).parent / "config.conf"
|
||||
config_path = "/etc/caddy-to-dsm/config.conf"
|
||||
|
||||
if not config_path.is_file():
|
||||
logging.error(f"Config file not found: {config_path}")
|
||||
raise FileNotFoundError(f"Config file not found: {config_path}")
|
||||
|
||||
Reference in New Issue
Block a user