aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fedora/jellyfin.spec4
1 files changed, 4 insertions, 0 deletions
diff --git a/fedora/jellyfin.spec b/fedora/jellyfin.spec
index 13305488e..4f4a30187 100644
--- a/fedora/jellyfin.spec
+++ b/fedora/jellyfin.spec
@@ -127,6 +127,10 @@ if [ $1 -gt 1 ] ; then
if [ "${service_state}" = "active" ]; then
systemctl start jellyfin.service
fi
+ if [ $1 -eq 1 ]; then
+ # On fresh install only, enable the jellyfin.service unit
+ systemctl enable --now jellyfin.service
+ fi
fi
%systemd_post jellyfin.service