luci-app-jellyfin: move script to common folder
This commit is contained in:
parent
b56f2ef6d2
commit
814d7d444b
@ -2,7 +2,7 @@
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_VERSION:=1.1.5-20221110
|
||||
PKG_VERSION:=1.1.5-20221114
|
||||
PKG_RELEASE:=
|
||||
|
||||
LUCI_TITLE:=LuCI support for jellyfin
|
||||
|
@ -6,7 +6,7 @@ local taskd = require "luci.model.tasks"
|
||||
local jellyfin_model = require "luci.model.jellyfin"
|
||||
local m, s, o
|
||||
|
||||
m = taskd.docker_map("jellyfin", "jellyfin", "/usr/share/jellyfin/install.sh",
|
||||
m = taskd.docker_map("jellyfin", "jellyfin", "/usr/libexec/istorec/jellyfin.sh",
|
||||
translate("Jellyfin"),
|
||||
translate("Jellyfin is the volunteer-built media solution that puts you in control of your media. Stream to any device from your own server, with no strings attached. Your media, your server, your way.")
|
||||
.. translate("Official website:") .. ' <a href=\"https://jellyfin.org/\" target=\"_blank\">https://jellyfin.org/</a>')
|
||||
|
@ -1,6 +1,6 @@
|
||||
<%
|
||||
local util = require "luci.util"
|
||||
local container_status = util.trim(util.exec("/usr/share/jellyfin/install.sh status"))
|
||||
local container_status = util.trim(util.exec("/usr/libexec/istorec/jellyfin.sh status"))
|
||||
local container_install = (string.len(container_status) > 0)
|
||||
local container_running = container_status == "running"
|
||||
-%>
|
||||
@ -16,7 +16,7 @@ local container_running = container_status == "running"
|
||||
</div>
|
||||
<%
|
||||
if container_running then
|
||||
local port=util.trim(util.exec("/usr/share/jellyfin/install.sh port"))
|
||||
local port=util.trim(util.exec("/usr/libexec/istorec/jellyfin.sh port"))
|
||||
if port == "" then
|
||||
port="8096"
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user