From 7006bbf8b228b47219e98d63a40bd9bff7a10475 Mon Sep 17 00:00:00 2001
From: Johannes Meyer
Date: Mon, 26 Jan 2015 14:13:10 +0100
Subject: [PATCH] Suggest "icingaweb2" as group instead of the webserver's user
..and note that it is necessary to create this group.
---
.../application/views/scripts/form/setup-welcome.phtml | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/modules/setup/application/views/scripts/form/setup-welcome.phtml b/modules/setup/application/views/scripts/form/setup-welcome.phtml
index aa51ffba6..d4bc1c3d7 100644
--- a/modules/setup/application/views/scripts/form/setup-welcome.phtml
+++ b/modules/setup/application/views/scripts/form/setup-welcome.phtml
@@ -41,14 +41,18 @@ $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.'
); ?>
+ = $this->translate('In any case, make sure that a group called "icingaweb2" exists:'); ?>
+
+ groupadd icingaweb2;
+
= $this->translate('If you\'ve got the IcingaCLI installed you can do the following:'); ?>
- = $cliPath ? $cliPath : 'icingacli'; ?> setup config directory --group = ($user = Platform::getPhpUser()) !== null ? $user : 'your_webserver_group'; ?>= $configDir !== '/etc/icingaweb2' ? ' --config ' . $configDir : ''; ?>;
+ = $cliPath ? $cliPath : 'icingacli'; ?> setup config directory --group icingaweb2= $configDir !== '/etc/icingaweb2' ? ' --config ' . $configDir : ''; ?>;
= $cliPath ? $cliPath : 'icingacli'; ?> setup token create;
= $this->translate('In case the IcingaCLI is missing you can create the token manually:'); ?>
- su = ($user = Platform::getPhpUser()) !== null ? $user : 'your_webserver_user'; ?> -c "mkdir -m 2770 = dirname($setupTokenPath); ?>; head -c 12 /dev/urandom | base64 | tee = $setupTokenPath; ?>; chmod 0660 = $setupTokenPath; ?>;";
+ su = ($user = Platform::getPhpUser()) !== null ? $user : 'your_webserver_user'; ?> -c "mkdir -m 2770 = dirname($setupTokenPath); ?>; chgrp icingaweb2 = dirname($setupTokenPath); ?>; head -c 12 /dev/urandom | base64 | tee = $setupTokenPath; ?>; chmod 0660 = $setupTokenPath; ?>;";
= sprintf(
$this->translate('Please see the %s for an extensive description on how to access and use this wizard.'),