浏览代码

Make use of the $1 flag to set installed only

Joshua M. Boniface 4 年之前
父节点
当前提交
be4e485bd3
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      fedora/jellyfin.spec

+ 2 - 1
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