diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2016-11-03 14:11:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-03 14:11:37 +0100 |
commit | 7ba7949dc12cc444399a3681904a3d0dd2d2ee32 (patch) | |
tree | 4092955e6d75bd5e2dffc56890ea4001a01f5d12 /lib | |
parent | b129adfb58eb98a37278dbd5a2f30b52c90cb4fc (diff) | |
parent | 074134638538fd95d484ccd041da9a96cdfb6b3c (diff) | |
download | nextcloud-server-7ba7949dc12cc444399a3681904a3d0dd2d2ee32.tar.gz nextcloud-server-7ba7949dc12cc444399a3681904a3d0dd2d2ee32.zip |
Merge pull request #1994 from nextcloud/proper-cron-hints
Show a hint for system based cron user name
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Settings/Admin/Server.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Settings/Admin/Server.php b/lib/private/Settings/Admin/Server.php index 6b381ab48ed..8b1477a0257 100644 --- a/lib/private/Settings/Admin/Server.php +++ b/lib/private/Settings/Admin/Server.php @@ -124,6 +124,8 @@ class Server implements ISettings { 'cron_log' => $this->config->getSystemValue('cron_log', true), 'lastcron' => $this->config->getAppValue('core', 'lastcron', false), 'cronErrors' => $this->config->getAppValue('core', 'cronErrors'), + 'cli_based_cron_possible' => function_exists('posix_getpwuid'), + 'cli_based_cron_user' => function_exists('posix_getpwuid') ? posix_getpwuid(fileowner(\OC::$configDir . 'config.php'))['name'] : '', ]; return new TemplateResponse('settings', 'admin/server', $parameters, ''); |