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:
parent
0eab424884
commit
9ad940a425
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue