Update / TL;DR
- First point, semantics and conventions aside,
/opt
is probably not an option if we want Sonarr to make an appearance inside Arch’s official community repo (like nzbget). -
-data
is here to stay unless it gets officially deprecated.
I deleted some info I deem irrelevant. Check the history of my edits if you need context.
Situation
I approached the current package submitter @justin8 from Arch Linux’s Arch User Repository (AUR) that contains packages such as Sonarr that once good enough can be moved into the official community repository, if there are no licensing issues (GPL3) and if enough votes are made.
Currently the Sonarr package in the AUR installs Sonarr into /usr/lib/sonarr
. Systemd starts exec mono /usr/lib/sonarr/NzbDrone.exe -nobrowser -data=/var/lib/sonarr
from /bin/sh
(Arch Linux maintained mono) using user:group sonarr:sonarr
.
Following concerns have been mentioned:
- Sonarr’s update functionality does not work. Packages inside
/usr/lib
are not supposed to receive write access from unprivileged users (see below). The Sonarr installation could maybe be moved to/opt
to allow self-updates but that certainly would not help the chances of making an appearance in Arch’s official community repository. - @Taloth mentioned the -data function is not recommended for production environments. Looking through the code I could not particularly tell why, it is hard to search for “-data” anywhere (forums or google). Is it not recommended because it is less robust for potential future changes? The /opt approach could probably circumvent this as well.
The main question
Mainly I wanted to ask about the -data
concern. It might be worth noting that it would be Arch Linux’s responsibility to very simply migrate existing configuration to new locations if configuration layout changes were to occur.