Fix env templateto ensure compatibility with systemd's EnvironmentFile parsing #1246

Closed
opened 2026-04-06 01:41:33 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @seiuneko on 2/3/2024

This commit addresses an issue in the Vaultwarden project's .env.template file where comments explaining environment variable options were incorrectly placed on the same line as the variable definitions. Systemd's EnvironmentFile directive only recognizes comment symbols (#) at the beginning of a line. Therefore, explanatory comments placed on the same line as environment variable definitions can lead to misinterpretations or errors when the file is used in a systemd service file.

*Originally created by @seiuneko on 2/3/2024* This commit addresses an issue in the Vaultwarden project's `.env.template` file where comments explaining environment variable options were incorrectly placed on the same line as the variable definitions. Systemd's `EnvironmentFile` directive only recognizes comment symbols (#) at the beginning of a line. Therefore, explanatory comments placed on the same line as environment variable definitions can lead to misinterpretations or errors when the file is used in a systemd service file.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#1246