aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-07-10 02:34:58 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-07-10 02:34:58 +0200
commite3b4e4f0f36cea92aa86dfd936a3b4ecb3338f79 (patch)
treeb447dc855f1438dbe533705899e7102282cafe5d
parentbceb38ce82fe99970a8a4ee2d8fb7161282f41a3 (diff)
parent12b751ddc9195b3b61d8a8cb9f8abae708a2d319 (diff)
downloadnextcloud-server-e3b4e4f0f36cea92aa86dfd936a3b4ecb3338f79.tar.gz
nextcloud-server-e3b4e4f0f36cea92aa86dfd936a3b4ecb3338f79.zip
Merge pull request #17546 from owncloud/forwardport-16917
Fix the config.php owner check for console.php
-rw-r--r--console.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/console.php b/console.php
index 3fee81c70c7..a5808f4a06a 100644
--- a/console.php
+++ b/console.php
@@ -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;