mirror of
https://github.com/altlinux/gpupdate.git
synced 2025-03-21 18:50:38 +03:00
Apply firewall rules only if firewall is explicitly enabled
This commit is contained in:
parent
a6defe8c41
commit
6f68917355
@ -53,13 +53,13 @@ class firewall_applier(applier_frontend):
|
||||
def apply(self):
|
||||
if self.__module_enabled:
|
||||
logging.debug(slogm('Running Firewall applier for machine'))
|
||||
if '0' == self.firewall_enabled:
|
||||
if '1' == self.firewall_enabled:
|
||||
logging.debug(slogm('Firewall is enabled'))
|
||||
self.run()
|
||||
else:
|
||||
logging.debug(slogm('Firewall is disabled, settings will be reset'))
|
||||
proc = subprocess.Popen(self.__firewall_reset_cmd)
|
||||
proc.wait()
|
||||
else:
|
||||
logging.debug(slogm('Firewall is enabled'))
|
||||
self.run()
|
||||
else:
|
||||
logging.debug(slogm('Firewall applier will not be started'))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user