Closes #21035: Add .gitkeep to track the media directory #653

Closed
opened 2026-04-05 17:02:43 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @pheus on 1/5/2026

Fixes: #21035

This PR ensures the netbox/media/ directory is present by default (including in release archives) by adding a .gitkeep file to track the directory in the repository.

To avoid tracking user-uploaded content, .gitignore is updated to ignore everything under media/ except the .gitkeep placeholder. This aligns with the install/upgrade docs which assume the directory exists when setting permissions, and should prevent chown from failing on fresh installs.

*Originally created by @pheus on 1/5/2026* ### Fixes: #21035 This PR ensures the `netbox/media/` directory is present by default (including in release archives) by adding a `.gitkeep` file to track the directory in the repository. To avoid tracking user-uploaded content, `.gitignore` is updated to ignore everything under `media/` except the `.gitkeep` placeholder. This aligns with the install/upgrade docs which assume the directory exists when setting permissions, and should prevent `chown` from failing on fresh installs.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#653