mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
(proxy) add path for deteting old acl files
This commit is contained in:
parent
82f33c6c85
commit
7f0709dfcb
@ -54,9 +54,9 @@ if os.path.exists(acl_config_fn):
|
||||
f = urllib2.urlopen(cnf.get(section,'url'),timeout = acl_max_timeout)
|
||||
with open('%s/%s'%(acl_target_dir,section), "wb") as code:
|
||||
code.write(f.read())
|
||||
# if disabled try to remove old file
|
||||
elif cnf.get(section,'enabled')=='0':
|
||||
# if disabled or not 1 try to remove old file
|
||||
elif cnf.get(section,'enabled')!='1':
|
||||
try:
|
||||
os.remove(section)
|
||||
os.remove(acl_target_dir+'/'+section)
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user