don't try to close tempfiles twice
This commit is contained in:
parent
549618bfad
commit
a15843b0d5
1 changed files with 0 additions and 2 deletions
|
@ -75,7 +75,6 @@ def create_web_vhost_config(username, sitename, wildcard):
|
|||
finally:
|
||||
if conffile:
|
||||
conffile.close()
|
||||
os.close(nginxtemp)
|
||||
try:
|
||||
subprocess.check_output([
|
||||
SUDO_CMD, INSTALL_CMD, '-o', 'root', '-g', 'root', '-m', '0640',
|
||||
|
@ -185,7 +184,6 @@ def create_web_php_fpm_pool_config(username):
|
|||
finally:
|
||||
if conffile:
|
||||
conffile.close()
|
||||
os.close(fpmtemp)
|
||||
try:
|
||||
subprocess.check_output([
|
||||
SUDO_CMD, INSTALL_CMD, '-o', 'root', '-g', 'root', '-m', '0644',
|
||||
|
|
Loading…
Reference in a new issue