소스 검색

Set systemctl enabled on Jellyfin service

This was not set for Fedora; I do not recall if this was just an oversight or was
explicitly removed in the past; open to feedback there.

Reported in the LUP Bug-A-Thon
Joshua M. Boniface 4 년 전
부모
커밋
d88504c1d6
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      fedora/jellyfin.spec

+ 3 - 0
fedora/jellyfin.spec

@@ -127,6 +127,9 @@ if [ $1 -gt 1 ] ; then
     if [ "${service_state}" = "active" ]; then
     if [ "${service_state}" = "active" ]; then
         systemctl start jellyfin.service
         systemctl start jellyfin.service
     fi
     fi
+    if [ "${service_state}" != "active" ]; then
+        systemctl enable jellyfin.service
+    fi
 fi
 fi
 %systemd_post jellyfin.service
 %systemd_post jellyfin.service