Skip to content

Commit

Permalink
Update cron.php
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Bull <git@sambull.org>
  • Loading branch information
Dreamsorcerer committed Jun 22, 2021
1 parent 265722e commit 6330507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
}

$user = posix_getuid();
$configUser = fileowner(OC::$configDir . 'config.php');
$configUser = fileowner($config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data'));
if ($user !== $configUser) {
echo "Console has to be executed with the user that owns the file config/config.php" . PHP_EOL;
echo "Current user id: " . $user . PHP_EOL;
Expand Down

0 comments on commit 6330507

Please sign in to comment.