mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 15:26:13 +01:00
resolve bug in modsec rules
This commit is contained in:
@@ -422,7 +422,7 @@ modsecurity_rules_file /usr/local/lsws/conf/modsec/rules.conf
|
|||||||
if result != 0:
|
if result != 0:
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
command = "unzip /usr/local/lsws/conf/modsec/owasp.zip -d /usr/local/lsws/conf/modsec/"
|
command = "unzip -o /usr/local/lsws/conf/modsec/owasp.zip -d /usr/local/lsws/conf/modsec/"
|
||||||
result = subprocess.call(shlex.split(command))
|
result = subprocess.call(shlex.split(command))
|
||||||
|
|
||||||
if result != 0:
|
if result != 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user