diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-08-19 15:45:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-19 15:45:42 +0200 |
commit | 1e69a691e10e36447fa66adb16dcc05e35237f69 (patch) | |
tree | 6b11beb9c301240b6d93ff9910d701435aec1b43 | |
parent | b73df01945983c1deffe68b0964115fb8dddb4f9 (diff) | |
parent | f25e2d82a56276457e26b7102220a7e403333718 (diff) | |
download | nextcloud-server-1e69a691e10e36447fa66adb16dcc05e35237f69.tar.gz nextcloud-server-1e69a691e10e36447fa66adb16dcc05e35237f69.zip |
Merge pull request #16775 from nextcloud/fix/5548
Make the warning about wrong permissions more clear.
-rw-r--r-- | cron.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -92,12 +92,13 @@ try { echo "The posix extensions are required - see http://php.net/manual/en/book.posix.php" . PHP_EOL; exit(1); } + $user = posix_getpwuid(posix_getuid()); $configUser = posix_getpwuid(fileowner(OC::$configDir . 'config.php')); if ($user['name'] !== $configUser['name']) { - echo "Console has to be executed with the same user as the web server is operated" . PHP_EOL; + echo "Console has to be executed with the user that owns the file config/config.php" . PHP_EOL; echo "Current user: " . $user['name'] . PHP_EOL; - echo "Web server user: " . $configUser['name'] . PHP_EOL; + echo "Owner of config.php: " . $configUser['name'] . PHP_EOL; exit(1); } |