Skip to content

nixos/nextcloud: nextcloud-occ no longer works with envvars #412675

@eyJhb

Description

@eyJhb

Nixpkgs version

  • Stable (25.05)

Describe the bug

There are some commands in nextcloud-occ, that can read from a envvar, such as nextcloud-occ user:resetpassword --password-from-env -- root, however it seems like #367433 might have changed that, and now clears all user envvars set.

Steps to reproduce

export OC_PASS="something"
nextcloud-occ user:resetpassword --password-from-env -- root

Gives the following error:

--password-from-env given, but OC_PASS is empty!

Expected behaviour

That it is possible to pass the password through envvars.

Screenshots

No response

Relevant log output

Additional context

No response

System metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 6.12.30, NixOS, 25.05 (Warbler), 25.05pre-git`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.28.3`
 - channels(root): `"nixos-24.05"`
 - nixpkgs: `/nix/store/6n9f0nw4wyzmc4dg1lzxrmyca4j57zac-nixos-24.05/nixos`

Notify maintainers

@Ma27 @networkException


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions