diff options
author | Simon L. <szaimen@e.mail.de> | 2024-05-14 12:09:15 +0200 |
---|---|---|
committer | Simon L. <szaimen@e.mail.de> | 2024-05-14 12:09:15 +0200 |
commit | 88648fa4935d5133e436b9ceb3ce559116fe7a30 (patch) | |
tree | 5dc593ab7aac0680bf1796092b771406756989f8 /cron.php | |
parent | e3f341fecb8a63b88f897d22af185cb2886ebe56 (diff) | |
download | nextcloud-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.php | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); } |