aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-08-19 15:45:42 +0200
committerGitHub <noreply@github.com>2019-08-19 15:45:42 +0200
commit1e69a691e10e36447fa66adb16dcc05e35237f69 (patch)
tree6b11beb9c301240b6d93ff9910d701435aec1b43
parentb73df01945983c1deffe68b0964115fb8dddb4f9 (diff)
parentf25e2d82a56276457e26b7102220a7e403333718 (diff)
downloadnextcloud-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.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/cron.php b/cron.php
index cdfa0fb367d..e5afaba8d2a 100644
--- a/cron.php
+++ b/cron.php
@@ -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);
}