fix ssl_decrypt replace logging with message window and path corrected
This commit is contained in:
@ -2,16 +2,19 @@
|
||||
""" This Script encrypt Wireguardfiles for Wirepy users for more Security """
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
from pathlib import Path
|
||||
import pwd
|
||||
import shutil
|
||||
from subprocess import CompletedProcess, run
|
||||
from shared_libs.wp_app_config import AppConfig, logging
|
||||
from shared_libs.wp_app_config import AppConfig
|
||||
from shared_libs.common_tools import LogConfig
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("--user", required=True, help="Username of the target file system")
|
||||
args = parser.parse_args()
|
||||
|
||||
LogConfig.logger(f"/home/{args.user}/.local/share/lxlogs/wirepy.log")
|
||||
try:
|
||||
# Retrieve UID and GID
|
||||
user_info = pwd.getpwnam(args.user)
|
||||
|
Reference in New Issue
Block a user