Revert: "Check datadirectory owner, not config owner."

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L.
2024-05-14 12:09:15 +02:00
parent e3f341fecb
commit 88648fa493
2 changed files with 12 additions and 23 deletions
+4 -4
View File
@@ -130,11 +130,11 @@ Options:
}
$user = posix_getuid();
$dataDirectoryUser = fileowner($config->getSystemValueString('datadirectory', \OC::$SERVERROOT . '/data'));
if ($user !== $dataDirectoryUser) {
echo "Cron has to be executed with the user that owns the data directory" . PHP_EOL;
$configUser = fileowner(OC::$configDir . 'config.php');
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;
echo "Owner id of the data directory: " . $dataDirectoryUser . PHP_EOL;
echo "Owner id of config.php: " . $configUser . PHP_EOL;
exit(1);
}