From a15843b0d5865881ec152e74602007469ab7e663 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Tue, 27 Jan 2015 13:58:57 +0100 Subject: [PATCH] don't try to close tempfiles twice --- gvaweb/webtasks/tasks.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/gvaweb/webtasks/tasks.py b/gvaweb/webtasks/tasks.py index 064f741..3331f97 100644 --- a/gvaweb/webtasks/tasks.py +++ b/gvaweb/webtasks/tasks.py @@ -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',