mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update firewall_api.py
This commit is contained in:
@@ -303,8 +303,9 @@ class firewall_api:
|
||||
return False
|
||||
return True
|
||||
if self.__isFirewalld:
|
||||
data = public.execShell(
|
||||
"ps -ef|grep firewalld |grep -v grep | grep -v python | awk '{print $2}'")
|
||||
cmd = "ps -ef|grep firewalld |grep -v grep | grep -v python | awk '{print $2}'"
|
||||
print cmd
|
||||
data = public.execShell(cmd)
|
||||
if data[0] == '':
|
||||
return False
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user