aboutsummaryrefslogtreecommitdiffstats
path: root/cron.php
diff options
context:
space:
mode:
authorSimon L. <szaimen@e.mail.de>2024-05-14 12:09:15 +0200
committerSimon L. <szaimen@e.mail.de>2024-05-14 12:09:15 +0200
commit88648fa4935d5133e436b9ceb3ce559116fe7a30 (patch)
tree5dc593ab7aac0680bf1796092b771406756989f8 /cron.php
parente3f341fecb8a63b88f897d22af185cb2886ebe56 (diff)
downloadnextcloud-server-88648fa4935d5133e436b9ceb3ce559116fe7a30.tar.gz
nextcloud-server-88648fa4935d5133e436b9ceb3ce559116fe7a30.zip
Revert: "Check datadirectory owner, not config owner."
Signed-off-by: Simon L <szaimen@e.mail.de>
Diffstat (limited to 'cron.php')
-rw-r--r--cron.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/cron.php b/cron.php
index 9b0489653ef..be743664db2 100644
--- a/cron.php
+++ b/cron.php
@@ -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);
}