aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2020-11-22 16:58:07 -0500
committerJoshua M. Boniface <joshua@boniface.me>2020-11-22 16:58:07 -0500
commitbe4e485bd30f19811392ee1ddcc58df2d3f26504 (patch)
treeb434f508069b41bad0bd3016cae7a405c7aef517
parentd88504c1d6b763e1438678f673a2f62de8d7c10f (diff)
Make use of the $1 flag to set installed only
-rw-r--r--fedora/jellyfin.spec3
1 files changed, 2 insertions, 1 deletions
diff --git a/fedora/jellyfin.spec b/fedora/jellyfin.spec
index 74fe5bd29..82ff947b3 100644
--- a/fedora/jellyfin.spec
+++ b/fedora/jellyfin.spec
@@ -127,7 +127,8 @@ if [ $1 -gt 1 ] ; then
if [ "${service_state}" = "active" ]; then
systemctl start jellyfin.service
fi
- if [ "${service_state}" != "active" ]; then
+ if [ $1 -eq 1 ]; then
+ # On fresh install only, enable the jellyfin.service unit
systemctl enable jellyfin.service
fi
fi