Browse Source
fix: Cron misrepresenting itself as console
Signed-off-by: Herman van Rink <rink@initfour.nl>
pull/44094/head
Herman van Rink
2 years ago
No known key found for this signature in database
GPG Key ID: BFDF74CF6CDAE489
1 changed files with
1 additions and
1 deletions
-
cron.php
|
|
|
@ -117,7 +117,7 @@ try { |
|
|
|
$user = posix_getuid(); |
|
|
|
$dataDirectoryUser = fileowner($config->getSystemValueString('datadirectory', \OC::$SERVERROOT . '/data')); |
|
|
|
if ($user !== $dataDirectoryUser) { |
|
|
|
echo "Console has to be executed with the user that owns the data directory" . PHP_EOL; |
|
|
|
echo "Cron has to be executed with the user that owns the data directory" . PHP_EOL; |
|
|
|
echo "Current user id: " . $user . PHP_EOL; |
|
|
|
echo "Owner id of the data directory: " . $dataDirectoryUser . PHP_EOL; |
|
|
|
exit(1); |
|
|
|
|