don't try to close tempfiles twice

This commit is contained in:
Jan Dittberner 2015-01-27 13:58:57 +01:00
parent 549618bfad
commit a15843b0d5

View file

@ -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',