aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2023-06-01 15:43:04 +0200
committerDaniel <mail@danielkesselberg.de>2023-07-31 22:04:44 +0200
commitcd0331320b61211d4715f4d192efe2d91d759d0c (patch)
tree6a457dc5d97d554fba996d0dbea5655d32df2904 /apps
parent27916deb9508668f570a65ce03504cf507dcbcf7 (diff)
downloadnextcloud-server-cd0331320b61211d4715f4d192efe2d91d759d0c.tar.gz
nextcloud-server-cd0331320b61211d4715f4d192efe2d91d759d0c.zip
fix: correct hint for missing posix extension
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/settings/src/components/BasicSettings/BackgroundJob.vue21
1 files changed, 10 insertions, 11 deletions
diff --git a/apps/settings/src/components/BasicSettings/BackgroundJob.vue b/apps/settings/src/components/BasicSettings/BackgroundJob.vue
index 2befc5cce79..26ec73bd7ca 100644
--- a/apps/settings/src/components/BasicSettings/BackgroundJob.vue
+++ b/apps/settings/src/components/BasicSettings/BackgroundJob.vue
@@ -65,21 +65,15 @@
</NcCheckboxRadioSwitch>
<em>{{ t('settings', 'cron.php is registered at a webcron service to call cron.php every 5 minutes over HTTP. Use case: Very small instance (1–5 users depending on the usage).') }}</em>
- <NcCheckboxRadioSwitch v-if="cliBasedCronPossible"
- type="radio"
+ <NcCheckboxRadioSwitch type="radio"
+ :disabled="!cliBasedCronPossible"
:checked.sync="backgroundJobsMode"
value="cron"
name="backgroundJobsMode"
@update:checked="onBackgroundJobModeChanged">
{{ t('settings', 'Cron (Recommended)') }}
</NcCheckboxRadioSwitch>
- <em v-if="cliBasedCronPossible">{{ cronLabel }}</em>
- <em v-else>
- {{ t('settings', 'To run this you need the PHP POSIX extension. See {linkstart}PHP documentation{linkend} for more details.', {
- linkstart: '<a href="https://www.php.net/manual/en/book.posix.php">',
- linkend: '</a>',
- }) }}
- </em>
+ <em v-html="cronLabel" />
</NcSettingsSection>
</template>
@@ -125,9 +119,14 @@ export default {
},
computed: {
cronLabel() {
- let desc = t('settings', 'Use system cron service to call the cron.php file every 5 minutes. Recommended for all instances.')
+ let desc = t('settings', 'Use system cron service to call the cron.php file every 5 minutes.')
if (this.cliBasedCronPossible) {
- desc += ' ' + t('settings', 'The cron.php needs to be executed by the system user "{user}".', { user: this.cliBasedCronUser })
+ desc += '<br>' + t('settings', 'The cron.php needs to be executed by the system user "{user}".', { user: this.cliBasedCronUser })
+ } else {
+ desc += '<br>' + t('settings', 'The PHP POSIX extension is required. See {linkstart}PHP documentation{linkend} for more details.', {
+ linkstart: '<a target="_blank" rel="noreferrer nofollow" class="external" href="https://www.php.net/manual/en/book.posix.php">',
+ linkend: '</a>',
+ }, undefined, { escape: false, sanitize: false })
}
return desc
},