Skip to content

Comments

fix: Pass environment variables through su - in installer#24

Merged
mverteuil merged 1 commit intomainfrom
fix/setup-env-passthrough
Feb 19, 2026
Merged

fix: Pass environment variables through su - in installer#24
mverteuil merged 1 commit intomainfrom
fix/setup-env-passthrough

Conversation

@mverteuil
Copy link
Owner

Summary

  • Fix environment variable passthrough when installer runs setup as birdnet user via su -
  • The su - command resets the environment, so BIRDNETPI_* config variables were being lost
  • Now explicitly passes these variables through the command string

Test plan

  • Run installer with BIRDNETPI_LATITUDE, BIRDNETPI_TIMEZONE etc. set
  • Verify config values are picked up by setup script

When running setup as birdnet user via `su -`, the environment is reset.
This fix passes BIRDNETPI_* configuration variables explicitly through
the command string so they reach the setup script.

Also adds clarifying comments to test mocks.
@mverteuil mverteuil merged commit 980ce79 into main Feb 19, 2026
3 checks passed
@mverteuil mverteuil deleted the fix/setup-env-passthrough branch February 19, 2026 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant