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:
|
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',
|
||||||
|
|
Loading…
Reference in a new issue