Skip to content

Commit e9fc8e1

Browse files
authored
Merge pull request #28446 from nextcloud/backport/28211/stable22
[stable22] Improve auto expiration hint for trashbin and file versions
2 parents f979151 + 73a52b2 commit e9fc8e1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/files_trashbin/lib/Command/ExpireTrash.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ protected function configure() {
7474
protected function execute(InputInterface $input, OutputInterface $output): int {
7575
$maxAge = $this->expiration->getMaxAgeAsTimestamp();
7676
if (!$maxAge) {
77-
$output->writeln("No expiry configured.");
77+
$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)");
7878
return 1;
7979
}
8080

apps/files_versions/lib/Command/ExpireVersions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ protected function configure() {
7373
protected function execute(InputInterface $input, OutputInterface $output): int {
7474
$maxAge = $this->expiration->getMaxAgeAsTimestamp();
7575
if (!$maxAge) {
76-
$output->writeln("No expiry configured.");
76+
$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.");
7777
return 1;
7878
}
7979

0 commit comments

Comments
 (0)