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: finally:
if conffile: if conffile:
conffile.close() conffile.close()
os.close(nginxtemp)
try: try:
subprocess.check_output([ subprocess.check_output([
SUDO_CMD, INSTALL_CMD, '-o', 'root', '-g', 'root', '-m', '0640', SUDO_CMD, INSTALL_CMD, '-o', 'root', '-g', 'root', '-m', '0640',
@ -185,7 +184,6 @@ def create_web_php_fpm_pool_config(username):
finally: finally:
if conffile: if conffile:
conffile.close() conffile.close()
os.close(fpmtemp)
try: try:
subprocess.check_output([ subprocess.check_output([
SUDO_CMD, INSTALL_CMD, '-o', 'root', '-g', 'root', '-m', '0644', SUDO_CMD, INSTALL_CMD, '-o', 'root', '-g', 'root', '-m', '0644',