bug fix to modsecurity, containerization and s3backups

This commit is contained in:
usmannasir
2019-04-28 03:19:24 +05:00
parent 75744c0f12
commit d8d9f20da3
6 changed files with 25 additions and 11 deletions

View File

@@ -1068,11 +1068,14 @@ class FirewallManager:
owaspInstalled = 0
try:
command = 'sudo cat /usr/local/lsws/conf/comodo_litespeed/rules.conf.main'
res = ProcessUtilities.executioner(command)
command = 'sudo ls /usr/local/lsws/conf/comodo_litespeed/'
output = ProcessUtilities.outputExecutioner(command)
if res == 1:
if output.find('No such') > -1:
comodoInstalled = 0
else:
comodoInstalled = 1
except subprocess.CalledProcessError:
pass