mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-07-28 17:59:32 +02:00
bug fix to modsecurity, containerization and s3backups
This commit is contained in:
@@ -135,8 +135,8 @@ class ProcessUtilities(multi.Thread):
|
||||
def containerCheck():
|
||||
try:
|
||||
command = 'sudo cat /etc/cgrules.conf'
|
||||
result = subprocess.call(shlex.split(command))
|
||||
if result == 1:
|
||||
output = ProcessUtilities.outputExecutioner(command)
|
||||
if output.find('No such') > -1:
|
||||
return 0
|
||||
else:
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user