Skip to content

Conversation

@yemkareems
Copy link
Contributor

possible options now are

occ encryption:encrypt-all

will ask the confirmation question before proceeding with encryption

occ encryption:encrypt-all -n

will not ask the question and run the encryption directly

  • Resolves: #

Summary

TODO

  • ...

Checklist

…interactive mode

Signed-off-by: yemkareems <yemkareems@gmail.com>
@yemkareems yemkareems self-assigned this Nov 13, 2025
@yemkareems yemkareems requested a review from a team as a code owner November 13, 2025 14:26
@yemkareems yemkareems added the 3. to review Waiting for reviews label Nov 13, 2025
@yemkareems yemkareems requested review from Altahrim and icewind1991 and removed request for a team November 13, 2025 14:26
Copy link
Contributor

@artonge artonge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's going in the good direction :).
Don't forget the other question that comes later.

…run encryption non-interactive only when -n option is present

Signed-off-by: yemkareems <yemkareems@gmail.com>
Copy link
Contributor

@artonge artonge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is also that question:

$question = new ConfirmationQuestion('Do you want to send the passwords directly to the users by mail? (y/n) ', false);
if ($this->questionHelper->ask($this->input, $this->output, $question)) {
$this->sendPasswordsByMail();
}
}

…non-interactive mode sent the password directly

Signed-off-by: yemkareems <yemkareems@gmail.com>
Copy link
Contributor

@come-nc come-nc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The option --no-interaction is provided by symfony for all console commands.
So the only thing you need to do is to remove the warning to prevent non-interactive input. Ideally make sure to only remove the warning if the option is passed.

…ault answer to both questions true to support -n run directly

Signed-off-by: yemkareems <yemkareems@gmail.com>
Copy link
Contributor

@artonge artonge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good beside nitpick

Signed-off-by: yemkareems <yemkareems@gmail.com>
@yemkareems yemkareems requested a review from artonge November 20, 2025 06:04
Signed-off-by: yemkareems <yemkareems@gmail.com>
@sorbaugh sorbaugh merged commit fbff470 into master Nov 27, 2025
182 of 188 checks passed
@sorbaugh sorbaugh deleted the fix/provide-non-interactive-mode-to-run-encryption branch November 27, 2025 10:46
@nextcloud-bot nextcloud-bot mentioned this pull request Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants