mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 14:54:24 +02:00
Ensure that the CLI successfully changed the group of the config directory
refs #7163
This commit is contained in:
parent
004ac04de6
commit
942530d514
@ -105,7 +105,11 @@ class SetupCommand extends Command
|
||||
$old = umask(0); // Prevent $mode from being mangled by the system's umask ($old)
|
||||
chmod($path, $mode);
|
||||
umask($old);
|
||||
chgrp($path, $group);
|
||||
|
||||
if (chgrp($path, $group) === false) {
|
||||
$this->fail(sprintf($this->translate('Unable to change the group of "%s" to "%s".'), $path, $group));
|
||||
return false;
|
||||
}
|
||||
|
||||
printf($this->translate("Successfully created configuration directory at: %s\n"), $path);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user