Fix the previous configuration.json check in the installation file

This commit is contained in:
adator
2025-10-26 21:15:05 +01:00
parent 2e9bfd2c3b
commit 35c3faf68c

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