bug fix (when user manually sets web root, that same directory should be used as one of potentionaly default dirs)

This commit is contained in:
Miroslav Stampar 2010-11-17 09:46:04 +00:00
parent bec152609a
commit d757e4ae1c

View File

@ -369,6 +369,9 @@ def getDirs(webApi=None):
else:
defaultDirs = ["/var/www/"]
if kb.docRoot and kb.docRoot not in defaultDirs:
defaultDirs.append(kb.docRoot)
if kb.absFilePaths:
infoMsg = "retrieved web server full paths: "
infoMsg += "'%s'" % ", ".join(path for path in kb.absFilePaths)