From 31560c9249dddd5863839aa448a700b01b5ca8bc Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 5 Mar 2015 10:30:06 +0100 Subject: [PATCH] Wizard: Explain that the webserver user must be in the group "icingaweb2" resolves #8491 --- .../views/scripts/form/setup-welcome.phtml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/modules/setup/application/views/scripts/form/setup-welcome.phtml b/modules/setup/application/views/scripts/form/setup-welcome.phtml index d4bc1c3d7..1b37f60f0 100644 --- a/modules/setup/application/views/scripts/form/setup-welcome.phtml +++ b/modules/setup/application/views/scripts/form/setup-welcome.phtml @@ -5,6 +5,7 @@ use Icinga\Application\Config; use Icinga\Application\Platform; use Icinga\Web\Wizard; +$phpUser = Platform::getPhpUser(); $configDir = Icinga::app()->getConfigDir(); $setupTokenPath = rtrim($configDir, '/') . '/setup.token'; $cliPath = realpath(Icinga::app()->getApplicationDir() . '/../bin/icingacli'); @@ -41,10 +42,15 @@ $cliPath = realpath(Icinga::app()->getApplicationDir() . '/../bin/icingacli'); 'To run this wizard a user needs to authenticate using a token which is usually' . ' provided to him by an administrator who\'d followed the instructions below.' ); ?>

-

translate('In any case, make sure that a group called "icingaweb2" exists:'); ?>

-
- groupadd icingaweb2; -
+

translate('In any case, make sure that all of the following applies to your environment:'); ?>

+

translate('If you\'ve got the IcingaCLI installed you can do the following:'); ?>

setup config directory --group icingaweb2; @@ -52,7 +58,7 @@ $cliPath = realpath(Icinga::app()->getApplicationDir() . '/../bin/icingacli');

translate('In case the IcingaCLI is missing you can create the token manually:'); ?>

- su -c "mkdir -m 2770 ; chgrp icingaweb2 ; head -c 12 /dev/urandom | base64 | tee ; chmod 0660 ;"; + su translate(''); ?> -c "mkdir -m 2770 ; chgrp icingaweb2 ; head -c 12 /dev/urandom | base64 | tee ; chmod 0660 ;";

translate('Please see the %s for an extensive description on how to access and use this wizard.'),