Store temporary DVSNI files in IConfig.work_dir.

This commit is contained in:
Jakub Warmuz 2015-06-18 20:27:40 +00:00
parent 5dcac29e3b
commit 061282fa66
No known key found for this signature in database
GPG key ID: 2A7BAD3A489B52EA
2 changed files with 2 additions and 2 deletions

View file

@ -141,7 +141,7 @@ class ApacheDvsni(common.Dvsni):
"""
ips = " ".join(str(i) for i in ip_addrs)
document_root = os.path.join(
self.configurator.config.config_dir, "dvsni_page/")
self.configurator.config.work_dir, "dvsni_page/")
# TODO: Python docs is not clear how mutliline string literal
# newlines are parsed on different platforms. At least on
# Linux (Debian sid), when source file uses CRLF, Python still

View file

@ -124,7 +124,7 @@ class NginxDvsni(common.Dvsni):
"""
document_root = os.path.join(
self.configurator.config.config_dir, "dvsni_page")
self.configurator.config.work_dir, "dvsni_page")
block = [['listen', str(addr)] for addr in addrs]