Add default for webroot

If the webroot is set to an empty string then the rendered
Apache config is syntactically invalid so this change
sets it to '/' as a sensible default

Change-Id: Iae1ca509e9668a676a1220f354e3f9a5f0e2aadf
Closes-Bug: 1590309
This commit is contained in:
Liam Young 2017-02-09 16:00:43 +00:00
parent 0eab424884
commit 9ad940a425
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ class HorizonContext(OSContextGenerator):
'debug': bool_from_string(config('debug')),
'customization_module': config('customization-module'),
'default_role': config('default-role'),
"webroot": config('webroot'),
"webroot": config('webroot') or '/',
"ubuntu_theme": bool_from_string(config('ubuntu-theme')),
"default_theme": config('default-theme'),
"secret": config('secret') or pwgen(),