Bläddra i källkod

fix: Cron misrepresenting itself as console

Signed-off-by: Herman van Rink <rink@initfour.nl>
tags/v29.0.0beta3
Herman van Rink 2 månader sedan
förälder
incheckning
164c05e40b
Inget konto är kopplat till bidragsgivarens mejladress
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      cron.php

+ 1
- 1
cron.php Visa fil

@@ -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);

Laddar…
Avbryt
Spara