Add /etc/qubes path

This commit is contained in:
Christopher Laprise 2018-02-13 23:39:28 -05:00
parent a262574f85
commit 10aee73bd7
No known key found for this signature in database
GPG Key ID: 448568C8B281C952

View File

@ -64,9 +64,11 @@ class FirewallWorker(object):
def run_firewall_dir(self): def run_firewall_dir(self):
'''Run scripts dir contents, before user script''' '''Run scripts dir contents, before user script'''
script_dir_path = '/rw/config/qubes-firewall.d' script_dir_paths = ['/etc/qubes/qubes-firewall.d',
'/rw/config/qubes-firewall.d']
for script_dir_path in script_dir_paths:
if not os.path.isdir(script_dir_path): if not os.path.isdir(script_dir_path):
return continue
for d_script in sorted(os.listdir(script_dir_path)): for d_script in sorted(os.listdir(script_dir_path)):
d_script_path = os.path.join(script_dir_path, d_script) d_script_path = os.path.join(script_dir_path, d_script)
if os.path.isfile(d_script_path) and \ if os.path.isfile(d_script_path) and \