aboutsummaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/cron.php b/cron.php
index b1dedaa84b2..4248157b4c8 100644
--- a/cron.php
+++ b/cron.php
@@ -90,7 +90,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 same user as the web server is operated" . PHP_EOL;
echo "Current user: " . $user['name'] . PHP_EOL;