소스 검색

Merge pull request #4553 from joshuaboniface/enable-service-on-fedora

Enable jellyfin.service unit on Fedora fresh install
Bill Thornton 4 년 전
부모
커밋
b187fe6fcb
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      fedora/jellyfin.spec

+ 4 - 0
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