mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +02:00
cli/setup: Do not use umask(0)
chmod is not affected in any way by the umask.
This commit is contained in:
parent
082cdd6dd2
commit
f84a9a6529
@ -53,9 +53,7 @@ class ConfigCommand extends Command
|
||||
return false;
|
||||
}
|
||||
|
||||
$old = umask(0); // Prevent $mode from being mangled by the system's umask ($old)
|
||||
chmod($config, $mode);
|
||||
umask($old);
|
||||
|
||||
if (chgrp($config, $group) === false) {
|
||||
$this->fail(sprintf($this->translate('Unable to change the group of "%s" to "%s".'), $config, $group));
|
||||
|
Loading…
x
Reference in New Issue
Block a user