Current Path : /proc/thread-self/root/proc/thread-self/root/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/subsys/panels/directadmin/ |
Current File : //proc/thread-self/root/proc/thread-self/root/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/subsys/panels/directadmin/config.py |
import os from defence360agent.utils.kwconfig import KWConfig BASEDIR = "/usr/local/directadmin/conf" class ConfigOptions(KWConfig): SEARCH_PATTERN = r"^\s*{}\s*=\s*(.*?)\s*$" WRITE_PATTERN = "{}={}" DEFAULT_FILENAME = os.path.join(BASEDIR, "directadmin.conf")