change default webdir config from option to env var #5087
While using systemd to start jellyfin.service on Fedora 33,
[INF]  Main: Web resources path: /usr/lib64/jellyfin/jellyfin-web
Apparently the option doesn't get picked up by the unitfile
After changing the corresponding environment variable to be
Changed the default config file for Debian, too, so both
While using systemd to start jellyfin.service on Fedora 33, the service failed. After inspecting the logs, the following output seemed relevant: [INF]  Main: Web resources path: /usr/lib64/jellyfin/jellyfin-web […] System.InvalidOperationException: The server is expected to host the web client, but the provided content directory is either invalid or empty: /usr/lib64/jellyfin/jellyfin-web. […] Apparently the option doesn't get picked up by the unitfile present if there's been an older version of jellyfin installed (see fedora/jellyfin.service line 8). After changing the corresponding environment variable to be consistent in handling with the rest of the env variables in /etc/sysconfig/jellyfin, the server starts without a hitch. Changed the default config file for Debian, too, so both distributions have the same default values.
First thing's first, everything is already consistent in Debian, let's not change that.
Second, I'm thinking this is a misconfiguration in the jellyfin-web RPM spec, not in here. The web fils should be installed to
The opt should 100% be working, since it's loaded as-is in the ExecStart line of the service unit:
Changing it to an envvar won't fix things if it's pointing at the wrong place.
I also assume this is for 10.7.0 RC3? Or is this for a previous stable version?