mirror of
https://github.com/nextcloud/server.git
synced 2026-03-03 14:01:34 -05:00
Merge pull request #17546 from owncloud/forwardport-16917
Fix the config.php owner check for console.php
This commit is contained in:
commit
e3b4e4f0f3
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ try {
|
|||
exit(0);
|
||||
}
|
||||
$user = posix_getpwuid(posix_getuid());
|
||||
$configUser = posix_getpwuid(fileowner(OC::$SERVERROOT . '/config/config.php'));
|
||||
$configUser = posix_getpwuid(fileowner(OC::$configDir . 'config.php'));
|
||||
if ($user['name'] !== $configUser['name']) {
|
||||
echo "Console has to be executed with the user that owns the file config/config.php" . PHP_EOL;
|
||||
echo "Current user: " . $user['name'] . PHP_EOL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue