Updated with user message only being in param map section.
This commit is contained in:
@@ -143,8 +143,6 @@ class HorizonInstaller(comp.PythonInstallComponent):
|
||||
user = self.cfg.get('horizon', 'apache_user')
|
||||
if not user:
|
||||
user = sh.getuser()
|
||||
if user in BAD_APACHE_USERS:
|
||||
LOG.warn("You may want to adjust your configuration, user=%s will typically not work with apache", user)
|
||||
group = self.cfg.get('horizon', 'apache_group')
|
||||
if not group:
|
||||
group = sh.getgroupname()
|
||||
@@ -156,6 +154,8 @@ class HorizonInstaller(comp.PythonInstallComponent):
|
||||
mp = dict()
|
||||
if config_fn == HORIZON_APACHE_CONF:
|
||||
(user, group) = self._get_apache_user_group()
|
||||
if user in BAD_APACHE_USERS:
|
||||
LOG.warn("You may want to adjust your configuration, user=%s,group=%s will typically not work with apache", user, group)
|
||||
mp['USER'] = user
|
||||
mp['GROUP'] = group
|
||||
mp['HORIZON_DIR'] = self.appdir
|
||||
|
||||
Reference in New Issue
Block a user