Revert: "Check datadirectory owner, not config owner."
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user