The Free Software Media System - Server Backend & API
Make use of the $1 flag to set installed only
Joshua M. Bonifacebe4e485bd30f
diff --git a/fedora/jellyfin.spec b/fedora/jellyfin.specindex 74fe5bd292..82ff947b3f 100644--- a/fedora/jellyfin.spec+++ b/fedora/jellyfin.spec@@ -127,7 +127,8 @@ if [ $1 -gt 1 ] ; thenif [ "${service_state}" = "active" ]; thensystemctl start jellyfin.servicefi- if [ "${service_state}" != "active" ]; then+ if [ $1 -eq 1 ]; then+ # On fresh install only, enable the jellyfin.service unitsystemctl enable jellyfin.servicefifi