From 3c4df7d0e98add873e80cb2f7c71bdd0a857b565 Mon Sep 17 00:00:00 2001 From: szaimen Date: Wed, 28 Jul 2021 12:58:01 +0200 Subject: [PATCH] Improve auto expiration hint Signed-off-by: szaimen Co-Authored-By: Pytal <24800714+Pytal@users.noreply.github.com> --- apps/files_trashbin/lib/Command/ExpireTrash.php | 2 +- apps/files_versions/lib/Command/ExpireVersions.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/files_trashbin/lib/Command/ExpireTrash.php b/apps/files_trashbin/lib/Command/ExpireTrash.php index a4e9ea57e1c60..7bb0858210e9d 100644 --- a/apps/files_trashbin/lib/Command/ExpireTrash.php +++ b/apps/files_trashbin/lib/Command/ExpireTrash.php @@ -75,7 +75,7 @@ protected function configure() { protected function execute(InputInterface $input, OutputInterface $output): int { $maxAge = $this->expiration->getMaxAgeAsTimestamp(); if (!$maxAge) { - $output->writeln("No expiry configured."); + $output->writeln("Auto expiration is configured - keeps files and folders in the trash bin for 30 days and automatically deletes anytime after that if space is needed (note: files may not be deleted if space is not needed)"); return 1; } diff --git a/apps/files_versions/lib/Command/ExpireVersions.php b/apps/files_versions/lib/Command/ExpireVersions.php index e59fea7db9a31..1d610b57e18d8 100644 --- a/apps/files_versions/lib/Command/ExpireVersions.php +++ b/apps/files_versions/lib/Command/ExpireVersions.php @@ -74,7 +74,7 @@ protected function configure() { protected function execute(InputInterface $input, OutputInterface $output): int { $maxAge = $this->expiration->getMaxAgeAsTimestamp(); if (!$maxAge) { - $output->writeln("No expiry configured."); + $output->writeln("Auto expiration is configured - expiration will be handled automatically according to the expiration patterns detailed at the following link https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/file_versioning.html."); return 1; }