From 074134638538fd95d484ccd041da9a96cdfb6b3c Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 3 Nov 2016 10:18:16 +0100 Subject: Show a hint for system based cron user name * makes it easier to setup cron job * gives hints for PHP documentation * disables the cron setting if requirements not met * fixes #1989 Signed-off-by: Morris Jobke --- settings/templates/admin/server.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'settings') diff --git a/settings/templates/admin/server.php b/settings/templates/admin/server.php index 02d247e1b18..430ca6ac8e2 100644 --- a/settings/templates/admin/server.php +++ b/settings/templates/admin/server.php @@ -201,9 +201,22 @@ > + } + if (!$_['cli_based_cron_possible']) { + print_unescaped('disabled'); + }?>>
- t("Use system's cron service to call the cron.php file every 15 minutes.")); ?> + t("Use system's cron service to call the cron.php file every 15 minutes.")); ?> + t('The cron.php needs to be executed by the system user "%s".', [$_['cli_based_cron_user']])); + } else { + print_unescaped(str_replace( + ['{linkstart}', '{linkend}'], + ['', ' ↗'], + $l->t('To run this you need the PHP posix extension. See {linkstart}PHP documentation{linkend} for more details.') + )); + } ?> +

-- cgit v1.2.3