Skip to content

Commit

Permalink
Ensure that the CLI successfully changed the group of the config dire…
Browse files Browse the repository at this point in the history
…ctory

refs #7163
  • Loading branch information
Johannes Meyer committed Nov 7, 2014
1 parent 004ac04 commit 942530d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion application/clicommands/SetupCommand.php
Expand Up @@ -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);
}
Expand Down

0 comments on commit 942530d

Please sign in to comment.