diff --git a/application/clicommands/SetupCommand.php b/application/clicommands/SetupCommand.php index c204b226b0..28eb8850a8 100644 --- a/application/clicommands/SetupCommand.php +++ b/application/clicommands/SetupCommand.php @@ -105,7 +105,11 @@ public function createConfigDirectoryAction() $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); }