fix ssl_encrypt.py read user_log datei added again

This commit is contained in:
Désiré Werner Menrath 2025-05-10 14:23:22 +02:00
parent d0adaa76e4
commit a903666a26
2 changed files with 6 additions and 1 deletions

View File

@ -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():

View File

@ -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: