From a903666a26ac61ffd201929ab78c11af54094d6d Mon Sep 17 00:00:00 2001 From: punix Date: Sat, 10 May 2025 14:23:22 +0200 Subject: [PATCH] fix ssl_encrypt.py read user_log datei added again --- ssl_encrypt.py | 4 +++- wp_app_config.py | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ssl_encrypt.py b/ssl_encrypt.py index 69827f6..0f07f6a 100755 --- a/ssl_encrypt.py +++ b/ssl_encrypt.py @@ -8,7 +8,9 @@ from subprocess import check_call from wp_app_config import AppConfig from common_tools import LxTools -keyfile: Path = AppConfig.PUBLICKEY +log_name = AppConfig.USER_FILE.read_text() + +keyfile: Path = Path(f"/home/{log_name}/.config/wire_py/pbwgk.pem") if not keyfile.is_file(): diff --git a/wp_app_config.py b/wp_app_config.py index 4698e07..1a0c28b 100644 --- a/wp_app_config.py +++ b/wp_app_config.py @@ -89,7 +89,10 @@ class AppConfig: """Ensures that all required directories exist""" if not cls.CONFIG_DIR.exists(): cls.CONFIG_DIR.mkdir(parents=True, exist_ok=True) + cls.KEYS_FILE.touch() cls.TEMP_DIR.mkdir(parents=True, exist_ok=True) + if not cls.KEYS_FILE.exists(): + cls.KEYS_FILE.touch() @classmethod def create_default_settings(cls) -> None: