Updated with user message only being in param map section.

This commit is contained in:
Joshua Harlow
2012-01-25 14:44:57 -08:00
parent bc4e27ad8f
commit c1205e1b74

View File

@@ -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()
@@ -155,7 +153,9 @@ class HorizonInstaller(comp.PythonInstallComponent):
#params with actual values
mp = dict()
if config_fn == HORIZON_APACHE_CONF:
(user, group) = self._get_apache_user_group()
(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