Merge pull request #95 from adator85/fix-install

Fix the previous configuration.json check in the installation file
This commit is contained in:
adator
2025-10-26 21:16:38 +01:00
committed by GitHub

View File

@@ -85,9 +85,9 @@ class Install:
# If the Python version is not good then Exit
exit("[!] Python version error [!]")
if not os.path.exists(os.path.join(self.config.defender_install_folder, 'config', 'configuration.json')):
if not os.path.exists(os.path.join(self.config.defender_install_folder, 'config', 'configuration.yaml')):
# If configuration file do not exist
exit("[!] Configuration file (core/configuration.json) doesn't exist! please create it [!]")
exit("[!] Configuration file (core/configuration.yaml) doesn't exist! please create it [!]")
# Exclude Windows OS from the installation
if os.name == 'nt':