diff options
author | Philippe Le Brouster <plb@nebkha.net> | 2015-06-13 22:05:57 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-07-10 00:19:52 +0300 |
commit | 12b751ddc9195b3b61d8a8cb9f8abae708a2d319 (patch) | |
tree | b3587f0910f36c48b5badf32c708be0da9877851 | |
parent | c86e742e6747ae3e41abbe9d0bf2583a20ba9fb0 (diff) |
Fix the config.php owner check for console.php
The config directory must be taken from OC::$configDir
Minor fix
- Remove uneeded slash in the configdir path.
-rw-r--r-- | console.php | 2 |
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; |