mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Tell the user which file the setup token could not be written to
fixes #7407
This commit is contained in:
parent
7f453be1cc
commit
5b3c24dd92
@ -53,7 +53,7 @@ class SetupCommand extends Command
|
||||
$filepath = $this->app->getConfigDir() . '/setup.token';
|
||||
|
||||
if (false === @file_put_contents($filepath, $token)) {
|
||||
$this->fail($this->translate('Cannot write setup token to disk.'));
|
||||
$this->fail(sprintf($this->translate('Cannot write setup token "%s" to disk.'), $filepath));
|
||||
}
|
||||
|
||||
if (false === @chmod($filepath, 0640)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user