mirror of
https://github.com/YunoHost-Apps/jellyfin_ynh.git
synced 2024-09-03 19:26:29 +02:00
commit
6ee504d16f
34 changed files with 536 additions and 131 deletions
|
@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
|
||||||
|
|
||||||
Media System that manage and stream your media.
|
Media System that manage and stream your media.
|
||||||
|
|
||||||
**Shipped version:** 10.7.7~ynh1
|
**Shipped version:** 10.7.7~ynh2
|
||||||
|
|
||||||
**Demo:** https://demo.jellyfin.org/stable/web/index.html
|
**Demo:** https://demo.jellyfin.org/stable/web/index.html
|
||||||
|
|
||||||
|
@ -31,6 +31,9 @@ Media System that manage and stream your media.
|
||||||
* Standard users need the `main` permission;
|
* Standard users need the `main` permission;
|
||||||
* Users with the `admin` permission will have access to the administration panel.
|
* Users with the `admin` permission will have access to the administration panel.
|
||||||
|
|
||||||
|
* The app can access YunoHost's multimedia directories:
|
||||||
|
choose one of the folders in `/home/yunohost.multimedia/share` upon configuration of your libraries.
|
||||||
|
|
||||||
* Starting version 10.7.5~ynh2, you can ask for the discovery ports (1900 and 7359) to be opened.
|
* Starting version 10.7.5~ynh2, you can ask for the discovery ports (1900 and 7359) to be opened.
|
||||||
They ease the setting up of your media center between clients and server.
|
They ease the setting up of your media center between clients and server.
|
||||||
* If you are upgrading to this version and above, set `discovery: '1'` in `/etc/yunohost/apps/jellyfin/settings.yml`
|
* If you are upgrading to this version and above, set `discovery: '1'` in `/etc/yunohost/apps/jellyfin/settings.yml`
|
||||||
|
|
|
@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
|
||||||
|
|
||||||
Système multimédia qui gère et diffuse vos médias.
|
Système multimédia qui gère et diffuse vos médias.
|
||||||
|
|
||||||
**Version incluse :** 10.7.7~ynh1
|
**Version incluse :** 10.7.7~ynh2
|
||||||
|
|
||||||
**Démo :** https://demo.jellyfin.org/stable/web/index.html
|
**Démo :** https://demo.jellyfin.org/stable/web/index.html
|
||||||
|
|
||||||
|
@ -27,6 +27,9 @@ Système multimédia qui gère et diffuse vos médias.
|
||||||
* Les utilisateurs standards doivent avoir la permission `main` ;
|
* Les utilisateurs standards doivent avoir la permission `main` ;
|
||||||
* Les utilisateurs doivent avoir la permission `admin` pour pouvoir accéder au panneau d'administration.
|
* Les utilisateurs doivent avoir la permission `admin` pour pouvoir accéder au panneau d'administration.
|
||||||
|
|
||||||
|
* L'app a accès aux dossiers multimédia de YunoHost:
|
||||||
|
indiquez un des dossiers de `/home/yunohost.multimedia/share` comme source lors du paramétrage de vos bibliothèques.
|
||||||
|
|
||||||
* À partir de la version 10.7.5~ynh2, vous pouvez demander l'ouverture des ports de découverte (1900 et 7359).
|
* À partir de la version 10.7.5~ynh2, vous pouvez demander l'ouverture des ports de découverte (1900 et 7359).
|
||||||
Ils facilitent la mise en place de votre système multimédia entre les clients et le serveur.
|
Ils facilitent la mise en place de votre système multimédia entre les clients et le serveur.
|
||||||
* Si vous mettez à jour vers cette version et les suivantes, mettez `discovery: '1'` dans `/etc/yunohost/apps/jellyfin/settings.yml`
|
* Si vous mettez à jour vers cette version et les suivantes, mettez `discovery: '1'` dans `/etc/yunohost/apps/jellyfin/settings.yml`
|
||||||
|
|
|
@ -1,14 +1,12 @@
|
||||||
# See here for more information
|
# See here for more information
|
||||||
# https://github.com/YunoHost/package_check#syntax-check_process-file
|
# https://github.com/YunoHost/package_check#syntax-check_process-file
|
||||||
|
|
||||||
# Move this file from check_process.default to check_process when you have filled it.
|
|
||||||
|
|
||||||
;; Test complet
|
;; Test complet
|
||||||
; Manifest
|
; Manifest
|
||||||
domain="domain.tld" (DOMAIN)
|
domain="domain.tld"
|
||||||
path="/path" (PATH)
|
path="/path"
|
||||||
admin="john" (USER)
|
admin="john"
|
||||||
is_public=1 (PUBLIC|public=1|private=0)
|
is_public=1
|
||||||
discovery=1
|
discovery=1
|
||||||
; Checks
|
; Checks
|
||||||
pkg_linter=1
|
pkg_linter=1
|
||||||
|
@ -18,18 +16,6 @@
|
||||||
setup_private=1
|
setup_private=1
|
||||||
setup_public=1
|
setup_public=1
|
||||||
upgrade=1
|
upgrade=1
|
||||||
# 10.6.4~ynh1
|
|
||||||
#upgrade=1 from_commit=dc5ab412fe599ce6d558c2f55fe53d2c21956c08
|
|
||||||
# 10.6.4~ynh2
|
|
||||||
#upgrade=1 from_commit=2aab8003d64ffabe65bd11ebe5933cfef519b061
|
|
||||||
# 10.6.4~ynh3
|
|
||||||
#upgrade=1 from_commit=5478712c0ca7683503bc1b50cfafe81ea508065e
|
|
||||||
# 10.7.0~ynh1
|
|
||||||
#upgrade=1 from_commit=63ab03ab79cc088a52b8a36fb4fdf5918bf0e14b
|
|
||||||
# 10.7.5~ynh1
|
|
||||||
#upgrade=1 from_commit=8ed403b30a8d3e61e2d3bf5bc8d3f4cae1ed80b6
|
|
||||||
# 10.7.6~ynh1
|
|
||||||
upgrade=1 from_commit=227b2cb8661b59ba391802637d0893976ffb6dd4
|
|
||||||
backup_restore=1
|
backup_restore=1
|
||||||
multi_instance=0
|
multi_instance=0
|
||||||
port_already_use=0
|
port_already_use=0
|
||||||
|
@ -38,15 +24,5 @@
|
||||||
Email=
|
Email=
|
||||||
Notification=none
|
Notification=none
|
||||||
;;; Upgrade options
|
;;; Upgrade options
|
||||||
; commit=dc5ab412fe599ce6d558c2f55fe53d2c21956c08
|
# ; commit=
|
||||||
name=10.6.4~ynh1
|
# name=
|
||||||
; commit=2aab8003d64ffabe65bd11ebe5933cfef519b061
|
|
||||||
name=10.6.4~ynh2
|
|
||||||
; commit=5478712c0ca7683503bc1b50cfafe81ea508065e
|
|
||||||
name=10.6.4~ynh3
|
|
||||||
; commit=63ab03ab79cc088a52b8a36fb4fdf5918bf0e14b
|
|
||||||
name=10.7.0~ynh1
|
|
||||||
; commit=8ed403b30a8d3e61e2d3bf5bc8d3f4cae1ed80b6
|
|
||||||
name=10.7.5~ynh1
|
|
||||||
; commit=227b2cb8661b59ba391802637d0893976ffb6dd4
|
|
||||||
name=10.7.6~ynh1
|
|
||||||
|
|
7
conf/ffmpeg.bullseye.amd64.src
Normal file
7
conf/ffmpeg.bullseye.amd64.src
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
SOURCE_URL=https://repo.jellyfin.org/releases/server/debian/versions/jellyfin-ffmpeg/4.3.2-1/jellyfin-ffmpeg_4.3.2-1-bullseye_amd64.deb
|
||||||
|
SOURCE_SUM=00bfda23ba65427566a50ce17876973c20350b69cd9ebd069cd7c6f7706414e8
|
||||||
|
SOURCE_SUM_PRG=sha256sum
|
||||||
|
SOURCE_FORMAT=deb
|
||||||
|
SOURCE_IN_SUBDIR=false
|
||||||
|
SOURCE_EXTRACT=false
|
||||||
|
SOURCE_FILENAME=jellyfin-ffmpeg.deb
|
7
conf/ffmpeg.bullseye.arm64.src
Normal file
7
conf/ffmpeg.bullseye.arm64.src
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
SOURCE_URL=https://repo.jellyfin.org/releases/server/debian/versions/jellyfin-ffmpeg/4.3.2-1/jellyfin-ffmpeg_4.3.2-1-bullseye_arm64.deb
|
||||||
|
SOURCE_SUM=e8dce4cc4904cae5efaa2ab1f0dd6345ab840548f944352628827696a2d9625f
|
||||||
|
SOURCE_SUM_PRG=sha256sum
|
||||||
|
SOURCE_FORMAT=deb
|
||||||
|
SOURCE_IN_SUBDIR=false
|
||||||
|
SOURCE_EXTRACT=false
|
||||||
|
SOURCE_FILENAME=jellyfin-ffmpeg.deb
|
7
conf/ffmpeg.bullseye.armhf.src
Normal file
7
conf/ffmpeg.bullseye.armhf.src
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
SOURCE_URL=https://repo.jellyfin.org/releases/server/debian/versions/jellyfin-ffmpeg/4.3.2-1/jellyfin-ffmpeg_4.3.2-1-bullseye_armhf.deb
|
||||||
|
SOURCE_SUM=1d02c43218d785e4e2218a413950a6c16ab852e3e409ddad494a1ae5cf5a7e02
|
||||||
|
SOURCE_SUM_PRG=sha256sum
|
||||||
|
SOURCE_FORMAT=deb
|
||||||
|
SOURCE_IN_SUBDIR=false
|
||||||
|
SOURCE_EXTRACT=false
|
||||||
|
SOURCE_FILENAME=jellyfin-ffmpeg.deb
|
38
conf/logging.json
Normal file
38
conf/logging.json
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
{
|
||||||
|
"Serilog": {
|
||||||
|
"MinimumLevel": {
|
||||||
|
"Default": "Error",
|
||||||
|
"Override": {
|
||||||
|
"Microsoft": "Warning",
|
||||||
|
"System": "Warning"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"WriteTo": [
|
||||||
|
{
|
||||||
|
"Name": "Console",
|
||||||
|
"Args": {
|
||||||
|
"outputTemplate": "[{Timestamp:HH:mm:ss}] [{Level:u3}] [{ThreadId}] {SourceContext}: {Message:lj}{NewLine}{Exception}"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "Async",
|
||||||
|
"Args": {
|
||||||
|
"configure": [
|
||||||
|
{
|
||||||
|
"Name": "File",
|
||||||
|
"Args": {
|
||||||
|
"path": "%JELLYFIN_LOG_DIR%//log_.log",
|
||||||
|
"rollingInterval": "Day",
|
||||||
|
"retainedFileCountLimit": 3,
|
||||||
|
"rollOnFileSizeLimit": true,
|
||||||
|
"fileSizeLimitBytes": 100000000,
|
||||||
|
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz}] [{Level:u3}] [{ThreadId}] {SourceContext}: {Message}{NewLine}{Exception}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"Enrich": [ "FromLogContext", "WithThreadId" ]
|
||||||
|
}
|
||||||
|
}
|
35
conf/network.xml
Normal file
35
conf/network.xml
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<NetworkConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||||
|
<RequireHttps>false</RequireHttps>
|
||||||
|
<CertificatePath />
|
||||||
|
<CertificatePassword />
|
||||||
|
<BaseUrl>__PATH__</BaseUrl>
|
||||||
|
<PublicHttpsPort>8920</PublicHttpsPort>
|
||||||
|
<HttpServerPortNumber>__PORT__</HttpServerPortNumber>
|
||||||
|
<HttpsPortNumber>8920</HttpsPortNumber>
|
||||||
|
<EnableHttps>false</EnableHttps>
|
||||||
|
<PublicPort>__PORT__</PublicPort>
|
||||||
|
<UPnPCreateHttpPortMap>false</UPnPCreateHttpPortMap>
|
||||||
|
<UDPPortRange />
|
||||||
|
<EnableIPV6>true</EnableIPV6>
|
||||||
|
<EnableIPV4>true</EnableIPV4>
|
||||||
|
<EnableSSDPTracing>false</EnableSSDPTracing>
|
||||||
|
<SSDPTracingFilter />
|
||||||
|
<UDPSendCount>2</UDPSendCount>
|
||||||
|
<UDPSendDelay>100</UDPSendDelay>
|
||||||
|
<IgnoreVirtualInterfaces>true</IgnoreVirtualInterfaces>
|
||||||
|
<VirtualInterfaceNames>vEthernet*</VirtualInterfaceNames>
|
||||||
|
<GatewayMonitorPeriod>60</GatewayMonitorPeriod>
|
||||||
|
<TrustAllIP6Interfaces>false</TrustAllIP6Interfaces>
|
||||||
|
<HDHomerunPortRange />
|
||||||
|
<PublishedServerUriBySubnet />
|
||||||
|
<AutoDiscoveryTracing>false</AutoDiscoveryTracing>
|
||||||
|
<AutoDiscovery>true</AutoDiscovery>
|
||||||
|
<RemoteIPFilter />
|
||||||
|
<IsRemoteIPFilterBlacklist>false</IsRemoteIPFilterBlacklist>
|
||||||
|
<EnableUPnP>true</EnableUPnP>
|
||||||
|
<EnableRemoteAccess>true</EnableRemoteAccess>
|
||||||
|
<LocalNetworkSubnets />
|
||||||
|
<LocalNetworkAddresses />
|
||||||
|
<KnownProxies />
|
||||||
|
</NetworkConfiguration>
|
7
conf/server.buster.amd64.src
Normal file
7
conf/server.buster.amd64.src
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
SOURCE_URL=https://repo.jellyfin.org/releases/server/debian/versions/stable/server/10.7.7/jellyfin-server_10.7.7-1_amd64.deb
|
||||||
|
SOURCE_SUM=938c8be07e2d183b4ee23a0f01f78d140ecb7f58aadc7c0a6105b2e4382c7a4e
|
||||||
|
SOURCE_SUM_PRG=sha256sum
|
||||||
|
SOURCE_FORMAT=deb
|
||||||
|
SOURCE_IN_SUBDIR=false
|
||||||
|
SOURCE_EXTRACT=false
|
||||||
|
SOURCE_FILENAME=jellyfin-server.deb
|
7
conf/server.buster.arm64.src
Normal file
7
conf/server.buster.arm64.src
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
SOURCE_URL=https://repo.jellyfin.org/releases/server/debian/versions/stable/server/10.7.7/jellyfin-server_10.7.7-1_arm64.deb
|
||||||
|
SOURCE_SUM=0c42e615382fa567d8e274e77a65632f878680536eaf2bd77fb13a09dc59ada9
|
||||||
|
SOURCE_SUM_PRG=sha256sum
|
||||||
|
SOURCE_FORMAT=deb
|
||||||
|
SOURCE_IN_SUBDIR=false
|
||||||
|
SOURCE_EXTRACT=false
|
||||||
|
SOURCE_FILENAME=jellyfin-server.deb
|
7
conf/server.buster.armhf.src
Normal file
7
conf/server.buster.armhf.src
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
SOURCE_URL=https://repo.jellyfin.org/releases/server/debian/versions/stable/server/10.7.7/jellyfin-server_10.7.7-1_armhf.deb
|
||||||
|
SOURCE_SUM=685931c972ad044fbdc2ccbea07a5aaf75f93e99562ea799cd6e5a7ac4bdb0cf
|
||||||
|
SOURCE_SUM_PRG=sha256sum
|
||||||
|
SOURCE_FORMAT=deb
|
||||||
|
SOURCE_IN_SUBDIR=false
|
||||||
|
SOURCE_EXTRACT=false
|
||||||
|
SOURCE_FILENAME=jellyfin-server.deb
|
195
conf/system.xml
Normal file
195
conf/system.xml
Normal file
|
@ -0,0 +1,195 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<ServerConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||||
|
<LogFileRetentionDays>3</LogFileRetentionDays>
|
||||||
|
<IsStartupWizardCompleted>true</IsStartupWizardCompleted>
|
||||||
|
<EnableUPnP>true</EnableUPnP>
|
||||||
|
<EnableMetrics>false</EnableMetrics>
|
||||||
|
<PublicPort>__PORT__</PublicPort>
|
||||||
|
<UPnPCreateHttpPortMap>false</UPnPCreateHttpPortMap>
|
||||||
|
<UDPPortRange />
|
||||||
|
<EnableIPV6>true</EnableIPV6>
|
||||||
|
<EnableIPV4>true</EnableIPV4>
|
||||||
|
<EnableSSDPTracing>false</EnableSSDPTracing>
|
||||||
|
<SSDPTracingFilter />
|
||||||
|
<UDPSendCount>2</UDPSendCount>
|
||||||
|
<UDPSendDelay>100</UDPSendDelay>
|
||||||
|
<IgnoreVirtualInterfaces>true</IgnoreVirtualInterfaces>
|
||||||
|
<VirtualInterfaceNames>vEthernet*</VirtualInterfaceNames>
|
||||||
|
<GatewayMonitorPeriod>60</GatewayMonitorPeriod>
|
||||||
|
<TrustAllIP6Interfaces>false</TrustAllIP6Interfaces>
|
||||||
|
<HDHomerunPortRange />
|
||||||
|
<PublishedServerUriBySubnet />
|
||||||
|
<AutoDiscoveryTracing>false</AutoDiscoveryTracing>
|
||||||
|
<AutoDiscovery>true</AutoDiscovery>
|
||||||
|
<PublicHttpsPort>8920</PublicHttpsPort>
|
||||||
|
<HttpServerPortNumber>__PORT__</HttpServerPortNumber>
|
||||||
|
<HttpsPortNumber>8920</HttpsPortNumber>
|
||||||
|
<EnableHttps>false</EnableHttps>
|
||||||
|
<EnableNormalizedItemByNameIds>true</EnableNormalizedItemByNameIds>
|
||||||
|
<CertificatePath />
|
||||||
|
<CertificatePassword />
|
||||||
|
<IsPortAuthorized>true</IsPortAuthorized>
|
||||||
|
<QuickConnectAvailable>false</QuickConnectAvailable>
|
||||||
|
<EnableRemoteAccess>true</EnableRemoteAccess>
|
||||||
|
<EnableCaseSensitiveItemIds>true</EnableCaseSensitiveItemIds>
|
||||||
|
<DisableLiveTvChannelUserDataName>true</DisableLiveTvChannelUserDataName>
|
||||||
|
<MetadataPath />
|
||||||
|
<MetadataNetworkPath />
|
||||||
|
<PreferredMetadataLanguage>en</PreferredMetadataLanguage>
|
||||||
|
<MetadataCountryCode>US</MetadataCountryCode>
|
||||||
|
<SortReplaceCharacters>
|
||||||
|
<string>.</string>
|
||||||
|
<string>+</string>
|
||||||
|
<string>%</string>
|
||||||
|
</SortReplaceCharacters>
|
||||||
|
<SortRemoveCharacters>
|
||||||
|
<string>,</string>
|
||||||
|
<string>&</string>
|
||||||
|
<string>-</string>
|
||||||
|
<string>{</string>
|
||||||
|
<string>}</string>
|
||||||
|
<string>'</string>
|
||||||
|
</SortRemoveCharacters>
|
||||||
|
<SortRemoveWords>
|
||||||
|
<string>the</string>
|
||||||
|
<string>a</string>
|
||||||
|
<string>an</string>
|
||||||
|
</SortRemoveWords>
|
||||||
|
<MinResumePct>5</MinResumePct>
|
||||||
|
<MaxResumePct>90</MaxResumePct>
|
||||||
|
<MinResumeDurationSeconds>300</MinResumeDurationSeconds>
|
||||||
|
<MinAudiobookResume>5</MinAudiobookResume>
|
||||||
|
<MaxAudiobookResume>5</MaxAudiobookResume>
|
||||||
|
<LibraryMonitorDelay>60</LibraryMonitorDelay>
|
||||||
|
<EnableDashboardResponseCaching>true</EnableDashboardResponseCaching>
|
||||||
|
<ImageSavingConvention>Legacy</ImageSavingConvention>
|
||||||
|
<MetadataOptions>
|
||||||
|
<MetadataOptions>
|
||||||
|
<ItemType>Book</ItemType>
|
||||||
|
<DisabledMetadataSavers />
|
||||||
|
<LocalMetadataReaderOrder />
|
||||||
|
<DisabledMetadataFetchers />
|
||||||
|
<MetadataFetcherOrder />
|
||||||
|
<DisabledImageFetchers />
|
||||||
|
<ImageFetcherOrder />
|
||||||
|
</MetadataOptions>
|
||||||
|
<MetadataOptions>
|
||||||
|
<ItemType>Movie</ItemType>
|
||||||
|
<DisabledMetadataSavers />
|
||||||
|
<LocalMetadataReaderOrder />
|
||||||
|
<DisabledMetadataFetchers />
|
||||||
|
<MetadataFetcherOrder />
|
||||||
|
<DisabledImageFetchers />
|
||||||
|
<ImageFetcherOrder />
|
||||||
|
</MetadataOptions>
|
||||||
|
<MetadataOptions>
|
||||||
|
<ItemType>MusicVideo</ItemType>
|
||||||
|
<DisabledMetadataSavers />
|
||||||
|
<LocalMetadataReaderOrder />
|
||||||
|
<DisabledMetadataFetchers>
|
||||||
|
<string>The Open Movie Database</string>
|
||||||
|
</DisabledMetadataFetchers>
|
||||||
|
<MetadataFetcherOrder />
|
||||||
|
<DisabledImageFetchers>
|
||||||
|
<string>The Open Movie Database</string>
|
||||||
|
</DisabledImageFetchers>
|
||||||
|
<ImageFetcherOrder />
|
||||||
|
</MetadataOptions>
|
||||||
|
<MetadataOptions>
|
||||||
|
<ItemType>Series</ItemType>
|
||||||
|
<DisabledMetadataSavers />
|
||||||
|
<LocalMetadataReaderOrder />
|
||||||
|
<DisabledMetadataFetchers />
|
||||||
|
<MetadataFetcherOrder />
|
||||||
|
<DisabledImageFetchers />
|
||||||
|
<ImageFetcherOrder />
|
||||||
|
</MetadataOptions>
|
||||||
|
<MetadataOptions>
|
||||||
|
<ItemType>MusicAlbum</ItemType>
|
||||||
|
<DisabledMetadataSavers />
|
||||||
|
<LocalMetadataReaderOrder />
|
||||||
|
<DisabledMetadataFetchers>
|
||||||
|
<string>TheAudioDB</string>
|
||||||
|
</DisabledMetadataFetchers>
|
||||||
|
<MetadataFetcherOrder />
|
||||||
|
<DisabledImageFetchers />
|
||||||
|
<ImageFetcherOrder />
|
||||||
|
</MetadataOptions>
|
||||||
|
<MetadataOptions>
|
||||||
|
<ItemType>MusicArtist</ItemType>
|
||||||
|
<DisabledMetadataSavers />
|
||||||
|
<LocalMetadataReaderOrder />
|
||||||
|
<DisabledMetadataFetchers>
|
||||||
|
<string>TheAudioDB</string>
|
||||||
|
</DisabledMetadataFetchers>
|
||||||
|
<MetadataFetcherOrder />
|
||||||
|
<DisabledImageFetchers />
|
||||||
|
<ImageFetcherOrder />
|
||||||
|
</MetadataOptions>
|
||||||
|
<MetadataOptions>
|
||||||
|
<ItemType>BoxSet</ItemType>
|
||||||
|
<DisabledMetadataSavers />
|
||||||
|
<LocalMetadataReaderOrder />
|
||||||
|
<DisabledMetadataFetchers />
|
||||||
|
<MetadataFetcherOrder />
|
||||||
|
<DisabledImageFetchers />
|
||||||
|
<ImageFetcherOrder />
|
||||||
|
</MetadataOptions>
|
||||||
|
<MetadataOptions>
|
||||||
|
<ItemType>Season</ItemType>
|
||||||
|
<DisabledMetadataSavers />
|
||||||
|
<LocalMetadataReaderOrder />
|
||||||
|
<DisabledMetadataFetchers />
|
||||||
|
<MetadataFetcherOrder />
|
||||||
|
<DisabledImageFetchers />
|
||||||
|
<ImageFetcherOrder />
|
||||||
|
</MetadataOptions>
|
||||||
|
<MetadataOptions>
|
||||||
|
<ItemType>Episode</ItemType>
|
||||||
|
<DisabledMetadataSavers />
|
||||||
|
<LocalMetadataReaderOrder />
|
||||||
|
<DisabledMetadataFetchers />
|
||||||
|
<MetadataFetcherOrder />
|
||||||
|
<DisabledImageFetchers />
|
||||||
|
<ImageFetcherOrder />
|
||||||
|
</MetadataOptions>
|
||||||
|
</MetadataOptions>
|
||||||
|
<SkipDeserializationForBasicTypes>true</SkipDeserializationForBasicTypes>
|
||||||
|
<ServerName />
|
||||||
|
<BaseUrl />
|
||||||
|
<UICulture>en-US</UICulture>
|
||||||
|
<SaveMetadataHidden>false</SaveMetadataHidden>
|
||||||
|
<ContentTypes />
|
||||||
|
<RemoteClientBitrateLimit>0</RemoteClientBitrateLimit>
|
||||||
|
<EnableFolderView>false</EnableFolderView>
|
||||||
|
<EnableGroupingIntoCollections>false</EnableGroupingIntoCollections>
|
||||||
|
<DisplaySpecialsWithinSeasons>true</DisplaySpecialsWithinSeasons>
|
||||||
|
<LocalNetworkSubnets />
|
||||||
|
<LocalNetworkAddresses />
|
||||||
|
<CodecsUsed />
|
||||||
|
<PluginRepositories>
|
||||||
|
<RepositoryInfo>
|
||||||
|
<Name>Jellyfin Stable</Name>
|
||||||
|
<Url>https://repo.jellyfin.org/releases/plugin/manifest-stable.json</Url>
|
||||||
|
<Enabled>true</Enabled>
|
||||||
|
</RepositoryInfo>
|
||||||
|
</PluginRepositories>
|
||||||
|
<EnableExternalContentInSuggestions>true</EnableExternalContentInSuggestions>
|
||||||
|
<RequireHttps>false</RequireHttps>
|
||||||
|
<EnableNewOmdbSupport>true</EnableNewOmdbSupport>
|
||||||
|
<RemoteIPFilter />
|
||||||
|
<IsRemoteIPFilterBlacklist>false</IsRemoteIPFilterBlacklist>
|
||||||
|
<ImageExtractionTimeoutMs>0</ImageExtractionTimeoutMs>
|
||||||
|
<PathSubstitutions />
|
||||||
|
<UninstalledPlugins />
|
||||||
|
<EnableSlowResponseWarning>true</EnableSlowResponseWarning>
|
||||||
|
<SlowResponseThresholdMs>500</SlowResponseThresholdMs>
|
||||||
|
<CorsHosts>
|
||||||
|
<string>*</string>
|
||||||
|
</CorsHosts>
|
||||||
|
<KnownProxies />
|
||||||
|
<ActivityLogRetentionDays>30</ActivityLogRetentionDays>
|
||||||
|
<LibraryScanFanoutConcurrency>0</LibraryScanFanoutConcurrency>
|
||||||
|
<LibraryMetadataRefreshConcurrency>0</LibraryMetadataRefreshConcurrency>
|
||||||
|
<RemoveOldPlugins>false</RemoveOldPlugins>
|
||||||
|
</ServerConfiguration>
|
7
conf/web.buster.amd64.src
Normal file
7
conf/web.buster.amd64.src
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
SOURCE_URL=https://repo.jellyfin.org/releases/server/debian/versions/stable/web/10.7.7/jellyfin-web_10.7.7-1_all.deb
|
||||||
|
SOURCE_SUM=ca06cc1be55cb0393de9cd002e5cd422b7746c68341125b8f4c18907c59647c8
|
||||||
|
SOURCE_SUM_PRG=sha256sum
|
||||||
|
SOURCE_FORMAT=deb
|
||||||
|
SOURCE_IN_SUBDIR=false
|
||||||
|
SOURCE_EXTRACT=false
|
||||||
|
SOURCE_FILENAME=jellyfin-web.deb
|
7
conf/web.buster.arm64.src
Normal file
7
conf/web.buster.arm64.src
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
SOURCE_URL=https://repo.jellyfin.org/releases/server/debian/versions/stable/web/10.7.7/jellyfin-web_10.7.7-1_all.deb
|
||||||
|
SOURCE_SUM=ca06cc1be55cb0393de9cd002e5cd422b7746c68341125b8f4c18907c59647c8
|
||||||
|
SOURCE_SUM_PRG=sha256sum
|
||||||
|
SOURCE_FORMAT=deb
|
||||||
|
SOURCE_IN_SUBDIR=false
|
||||||
|
SOURCE_EXTRACT=false
|
||||||
|
SOURCE_FILENAME=jellyfin-web.deb
|
7
conf/web.buster.armhf.src
Normal file
7
conf/web.buster.armhf.src
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
SOURCE_URL=https://repo.jellyfin.org/releases/server/debian/versions/stable/web/10.7.7/jellyfin-web_10.7.7-1_all.deb
|
||||||
|
SOURCE_SUM=ca06cc1be55cb0393de9cd002e5cd422b7746c68341125b8f4c18907c59647c8
|
||||||
|
SOURCE_SUM_PRG=sha256sum
|
||||||
|
SOURCE_FORMAT=deb
|
||||||
|
SOURCE_IN_SUBDIR=false
|
||||||
|
SOURCE_EXTRACT=false
|
||||||
|
SOURCE_FILENAME=jellyfin-web.deb
|
|
@ -2,6 +2,9 @@
|
||||||
* Standard users need the `main` permission;
|
* Standard users need the `main` permission;
|
||||||
* Users with the `admin` permission will have access to the administration panel.
|
* Users with the `admin` permission will have access to the administration panel.
|
||||||
|
|
||||||
|
* The app can access YunoHost's multimedia directories:
|
||||||
|
choose one of the folders in `/home/yunohost.multimedia/share` upon configuration of your libraries.
|
||||||
|
|
||||||
* Starting version 10.7.5~ynh2, you can ask for the discovery ports (1900 and 7359) to be opened.
|
* Starting version 10.7.5~ynh2, you can ask for the discovery ports (1900 and 7359) to be opened.
|
||||||
They ease the setting up of your media center between clients and server.
|
They ease the setting up of your media center between clients and server.
|
||||||
* If you are upgrading to this version and above, set `discovery: '1'` in `/etc/yunohost/apps/jellyfin/settings.yml`
|
* If you are upgrading to this version and above, set `discovery: '1'` in `/etc/yunohost/apps/jellyfin/settings.yml`
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
* Les utilisateurs standards doivent avoir la permission `main` ;
|
* Les utilisateurs standards doivent avoir la permission `main` ;
|
||||||
* Les utilisateurs doivent avoir la permission `admin` pour pouvoir accéder au panneau d'administration.
|
* Les utilisateurs doivent avoir la permission `admin` pour pouvoir accéder au panneau d'administration.
|
||||||
|
|
||||||
|
* L'app a accès aux dossiers multimédia de YunoHost:
|
||||||
|
indiquez un des dossiers de `/home/yunohost.multimedia/share` comme source lors du paramétrage de vos bibliothèques.
|
||||||
|
|
||||||
* À partir de la version 10.7.5~ynh2, vous pouvez demander l'ouverture des ports de découverte (1900 et 7359).
|
* À partir de la version 10.7.5~ynh2, vous pouvez demander l'ouverture des ports de découverte (1900 et 7359).
|
||||||
Ils facilitent la mise en place de votre système multimédia entre les clients et le serveur.
|
Ils facilitent la mise en place de votre système multimédia entre les clients et le serveur.
|
||||||
* Si vous mettez à jour vers cette version et les suivantes, mettez `discovery: '1'` dans `/etc/yunohost/apps/jellyfin/settings.yml`
|
* Si vous mettez à jour vers cette version et les suivantes, mettez `discovery: '1'` dans `/etc/yunohost/apps/jellyfin/settings.yml`
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Media System that manage and stream your media.",
|
"en": "Media System that manage and stream your media.",
|
||||||
"fr": "Système multimédia qui gère et diffuse vos médias."
|
"fr": "Système multimédia qui gère et diffuse vos médias."
|
||||||
},
|
},
|
||||||
"version": "10.7.7~ynh1",
|
"version": "10.7.7~ynh2",
|
||||||
"url": "https://jellyfin.org",
|
"url": "https://jellyfin.org",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "GPL-2.0-only",
|
"license": "GPL-2.0-only",
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">= 4.1.3"
|
"yunohost": ">= 4.2"
|
||||||
},
|
},
|
||||||
"multi_instance": false,
|
"multi_instance": false,
|
||||||
"services": [
|
"services": [
|
||||||
|
|
|
@ -16,6 +16,46 @@ architecture=$(dpkg --print-architecture)
|
||||||
discovery_service_port=1900
|
discovery_service_port=1900
|
||||||
discovery_client_port=7359
|
discovery_client_port=7359
|
||||||
|
|
||||||
|
ffmpeg_deps=(
|
||||||
|
libass9
|
||||||
|
libbluray2
|
||||||
|
libc6
|
||||||
|
libdrm2
|
||||||
|
libfontconfig1
|
||||||
|
libfreetype6
|
||||||
|
libfribidi0
|
||||||
|
libgcc1
|
||||||
|
libgmp10
|
||||||
|
libgnutls30
|
||||||
|
libmp3lame0
|
||||||
|
libopus0
|
||||||
|
libstdc++6
|
||||||
|
libtheora0
|
||||||
|
libvdpau1
|
||||||
|
libvorbis0a
|
||||||
|
libvorbisenc2
|
||||||
|
libwebp6
|
||||||
|
libwebpmux3
|
||||||
|
libx11-6
|
||||||
|
libzvbi0
|
||||||
|
zlib1g
|
||||||
|
)
|
||||||
|
|
||||||
|
case "$debian" in
|
||||||
|
buster) ffmpeg_deps+=( libvpx5 libx264-155 libx265-165 ) ;;
|
||||||
|
bullseye) ffmpeg_deps+=( libvpx6 libx264-160 libx265-192 ) ;;
|
||||||
|
*) echo "Unknown release: $debian" >&2; exit 1 ;;
|
||||||
|
esac
|
||||||
|
case "$architecture" in
|
||||||
|
arm64) : ;;
|
||||||
|
armhf) : ;;
|
||||||
|
*) ffmpeg_deps+=( libdrm-intel1 libopencl1 ) ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
jellyfin_deps=(at libsqlite3-0 libfontconfig1 libfreetype6 libssl1.1)
|
||||||
|
|
||||||
|
pkg_dependencies="${ffmpeg_deps[*]} ${jellyfin_deps[*]}"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PERSONAL HELPERS
|
# PERSONAL HELPERS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -61,7 +61,6 @@ ynh_backup --src_path="/etc/logrotate.d/$app"
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_backup --src_path="/etc/systemd/system/jellyfin.service.d" --not_mandatory
|
ynh_backup --src_path="/etc/systemd/system/jellyfin.service.d" --not_mandatory
|
||||||
ynh_backup --src_path="/lib/systemd/system/jellyfin.service"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP VARIOUS FILES
|
# BACKUP VARIOUS FILES
|
||||||
|
|
|
@ -101,20 +101,38 @@ ynh_app_setting_set --app=$app --key=discovery_client --value=$discovery_client
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL DEPENDENCIES
|
# INSTALL DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Installing dependencies..." --weight=1
|
ynh_script_progression --message="Installing dependencies..." --weight=5
|
||||||
|
|
||||||
|
ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# INSTALL PACKAGES
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Installing packages..." --weight=1
|
||||||
|
|
||||||
# Create the temporary directory
|
# Create the temporary directory
|
||||||
tempdir="$(mktemp -d)"
|
tempdir="$(mktemp -d)"
|
||||||
|
|
||||||
# Download the deb files
|
# Download the deb files
|
||||||
ynh_setup_source --dest_dir=$tempdir --source_id="ffmpeg.$architecture"
|
ynh_setup_source --dest_dir=$tempdir --source_id="ffmpeg.$debian.$architecture"
|
||||||
ynh_setup_source --dest_dir=$tempdir --source_id="server.$architecture"
|
# In case of a new version, the url change from https://repo.jellyfin.org/releases/server/debian/versions/stable/server/X.X.X/jellyfin-server_X.X.X-1_$architecture.deb to https://repo.jellyfin.org/archive/debian/stable/X.X.X/server/jellyfin-server_X.X.X-1_$architecture.deb
|
||||||
ynh_setup_source --dest_dir=$tempdir --source_id="web.$architecture"
|
src_url=$(grep 'SOURCE_URL=' "../conf/server.$debian.$architecture.src" | cut -d= -f2-)
|
||||||
|
if ! curl --output /dev/null --silent --head --fail "$src_url"; then
|
||||||
|
ynh_replace_string --match_string="releases/server/debian/versions/stable/server/$version/jellyfin-server_$version-1_$architecture.deb" --replace_string="archive/debian/stable/$version/server/jellyfin-server_$version-1_$architecture.deb" --target_file="../conf/server.$debian.$architecture.src"
|
||||||
|
fi
|
||||||
|
ynh_setup_source --dest_dir=$tempdir --source_id="server.$debian.$architecture"
|
||||||
|
|
||||||
|
# Same for web
|
||||||
|
src_url=$(grep 'SOURCE_URL=' "../conf/web.$debian.$architecture.src" | cut -d= -f2-)
|
||||||
|
if ! curl --output /dev/null --silent --head --fail "$src_url"; then
|
||||||
|
ynh_replace_string --match_string="releases/server/debian/versions/stable/web/$version/jellyfin-web_$version-1_all.deb" --replace_string="archive/debian/stable/$version/web/jellyfin-web_$version-1_all.deb" --target_file="../conf/web.$debian.$architecture.src"
|
||||||
|
fi
|
||||||
|
ynh_setup_source --dest_dir=$tempdir --source_id="web.$debian.$architecture"
|
||||||
|
|
||||||
# Install the packages
|
# Install the packages
|
||||||
ynh_exec_warn_less apt-get -f install $tempdir/jellyfin-ffmpeg.deb -y
|
ynh_exec_warn_less dpkg -i $tempdir/jellyfin-ffmpeg.deb
|
||||||
ynh_exec_warn_less apt-get -f install $tempdir/jellyfin-server.deb -y
|
ynh_exec_warn_less dpkg -i $tempdir/jellyfin-server.deb
|
||||||
ynh_exec_warn_less apt-get -f install $tempdir/jellyfin-web.deb -y
|
ynh_exec_warn_less dpkg -i $tempdir/jellyfin-web.deb
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
@ -140,34 +158,16 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
# MODIFY A CONFIG FILE
|
# MODIFY A CONFIG FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_print_info --message="Waiting 30s to let Jellyfin fully start a first time..."
|
||||||
|
sleep 30
|
||||||
|
|
||||||
ynh_script_progression --message="Configuring the settings..." --weight=1
|
ynh_script_progression --message="Configuring the settings..." --weight=1
|
||||||
|
|
||||||
# Set permissions to app files
|
|
||||||
chown -R $app: $final_path
|
|
||||||
|
|
||||||
# Load services once to generate system.xml
|
|
||||||
ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Started Jellyfin Media Server" --timeout=15
|
|
||||||
ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" --line_match="Stopped Jellyfin Media Server" --timeout=15
|
ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" --line_match="Stopped Jellyfin Media Server" --timeout=15
|
||||||
|
|
||||||
# Port config
|
ynh_add_config --template="system.xml" --destination="$config_path/system.xml"
|
||||||
ynh_replace_string --match_string="<PublicPort>8096</PublicPort>" --replace_string="<PublicPort>$port</PublicPort>" --target_file="$config_path/network.xml"
|
ynh_add_config --template="network.xml" --destination="$config_path/network.xml"
|
||||||
ynh_replace_string --match_string="<HttpServerPortNumber>8096</HttpServerPortNumber>" --replace_string="<HttpServerPortNumber>$port</HttpServerPortNumber>" --target_file="$config_path/network.xml"
|
ynh_add_config --template="logging.json" --destination="$config_path/logging.json"
|
||||||
|
|
||||||
# Enable IPv6
|
|
||||||
ynh_replace_string --match_string="<EnableIPV6>false</EnableIPV6>" --replace_string="<EnableIPV6>true</EnableIPV6>" --target_file="$config_path/network.xml"
|
|
||||||
|
|
||||||
# BaseUrl config
|
|
||||||
ynh_replace_string --match_string="<BaseUrl />" --replace_string="<BaseUrl>$path_url</BaseUrl>" --target_file="$config_path/network.xml"
|
|
||||||
|
|
||||||
# Disable Setup Wizard
|
|
||||||
ynh_replace_string --match_string="<IsStartupWizardCompleted>false</IsStartupWizardCompleted>" --replace_string="<IsStartupWizardCompleted>true</IsStartupWizardCompleted>" --target_file="$config_path/system.xml"
|
|
||||||
|
|
||||||
# Lower logging verbosity
|
|
||||||
cp "$config_path/logging.default.json" "$config_path/logging.json"
|
|
||||||
ynh_replace_string --match_string="\"Default\": \"Information\"" --replace_string="\"Default\": \"Error\"" --target_file="$config_path/logging.json"
|
|
||||||
|
|
||||||
ynh_store_file_checksum --file="$config_path/network.xml"
|
|
||||||
ynh_store_file_checksum --file="$config_path/system.xml"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL LDAP PLUGIN
|
# INSTALL LDAP PLUGIN
|
||||||
|
@ -176,7 +176,17 @@ ynh_script_progression --message="Installing LDAP plugin..." --weight=2
|
||||||
|
|
||||||
ynh_setup_source --dest_dir="/var/lib/jellyfin/plugins/LDAP Authentication" --source_id=ldap
|
ynh_setup_source --dest_dir="/var/lib/jellyfin/plugins/LDAP Authentication" --source_id=ldap
|
||||||
mkdir -p /var/lib/jellyfin/plugins/configurations/
|
mkdir -p /var/lib/jellyfin/plugins/configurations/
|
||||||
ynh_add_config --template="../conf/LDAP-Auth.xml" --destination="/var/lib/jellyfin/plugins/configurations/LDAP-Auth.xml"
|
ynh_add_config --template="LDAP-Auth.xml" --destination="/var/lib/jellyfin/plugins/configurations/LDAP-Auth.xml"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# YUNOHOST MULTIMEDIA INTEGRATION
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Adding multimedia directories..." --weight=2
|
||||||
|
|
||||||
|
# Build YunoHost multimedia directories
|
||||||
|
ynh_multimedia_build_main_dir
|
||||||
|
# Allow Jellyfin to write into these directories
|
||||||
|
ynh_multimedia_addaccess $app
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
@ -209,9 +219,9 @@ needed_ports=()
|
||||||
|
|
||||||
# Integrate service and require to expose the ports if needed
|
# Integrate service and require to expose the ports if needed
|
||||||
if [[ -z ${needed_ports[@]} ]]; then
|
if [[ -z ${needed_ports[@]} ]]; then
|
||||||
yunohost service add $app --description="Jellyfin media center" --log_type="systemd"
|
yunohost service add $app --description="Jellyfin media center"
|
||||||
else
|
else
|
||||||
yunohost service add $app --description="Jellyfin media center" --log_type="systemd" --needs_exposed_ports ${needed_ports[@]}
|
yunohost service add $app --description="Jellyfin media center" --needs_exposed_ports ${needed_ports[@]}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -38,11 +38,18 @@ fi
|
||||||
#=================================================
|
#=================================================
|
||||||
# REMOVE DEPENDENCIES
|
# REMOVE DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Removing dependencies..." --weight=1
|
ynh_script_progression --message="Removing dependencies..." --weight=3
|
||||||
|
|
||||||
apt-get remove jellyfin-web -y
|
ynh_remove_app_dependencies
|
||||||
apt-get remove jellyfin-server -y
|
|
||||||
apt-get remove jellyfin-ffmpeg -y
|
#=================================================
|
||||||
|
# REMOVE PACKAGES
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Removing packages..." --weight=1
|
||||||
|
|
||||||
|
dpkg --remove jellyfin-web
|
||||||
|
dpkg --remove jellyfin-server
|
||||||
|
dpkg --remove jellyfin-ffmpeg
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REMOVE APP DIRECTORIES
|
# REMOVE APP DIRECTORIES
|
||||||
|
|
|
@ -109,20 +109,39 @@ ynh_system_user_create --username=$app
|
||||||
#=================================================
|
#=================================================
|
||||||
# REINSTALL DEPENDENCIES
|
# REINSTALL DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Reinstalling dependencies..." --weight=7
|
ynh_script_progression --message="Reinstalling dependencies..." --weight=5
|
||||||
|
|
||||||
|
# Define and install dependencies
|
||||||
|
ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# REINSTALL PACKAGES
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Reinstalling packages..." --weight=7
|
||||||
|
|
||||||
# Create the temporary directory
|
# Create the temporary directory
|
||||||
tempdir="$(mktemp -d)"
|
tempdir="$(mktemp -d)"
|
||||||
|
|
||||||
# Download the deb files
|
# Download the deb files
|
||||||
ynh_setup_source --dest_dir=$tempdir --source_id="ffmpeg.$architecture"
|
ynh_setup_source --dest_dir=$tempdir --source_id="ffmpeg.$debian.$architecture"
|
||||||
ynh_setup_source --dest_dir=$tempdir --source_id="server.$architecture"
|
# In case of a new version, the url change from https://repo.jellyfin.org/releases/server/debian/versions/stable/server/X.X.X/jellyfin-server_X.X.X-1_$architecture.deb to https://repo.jellyfin.org/archive/debian/stable/X.X.X/server/jellyfin-server_X.X.X-1_$architecture.deb
|
||||||
ynh_setup_source --dest_dir=$tempdir --source_id="web.$architecture"
|
src_url=$(grep 'SOURCE_URL=' "../settings/conf/server.$debian.$architecture.src" | cut -d= -f2-)
|
||||||
|
if ! curl --output /dev/null --silent --head --fail "$src_url"; then
|
||||||
|
ynh_replace_string --match_string="releases/server/debian/versions/stable/server/$version/jellyfin-server_$version-1_$architecture.deb" --replace_string="archive/debian/stable/$version/server/jellyfin-server_$version-1_$architecture.deb" --target_file="../settings/conf/server.$debian.$architecture.src"
|
||||||
|
fi
|
||||||
|
ynh_setup_source --dest_dir=$tempdir --source_id="server.$debian.$architecture"
|
||||||
|
|
||||||
|
# Same for web
|
||||||
|
src_url=$(grep 'SOURCE_URL=' "../settings/conf/web.$debian.$architecture.src" | cut -d= -f2-)
|
||||||
|
if ! curl --output /dev/null --silent --head --fail "$src_url"; then
|
||||||
|
ynh_replace_string --match_string="releases/server/debian/versions/stable/web/$version/jellyfin-web_$version-1_all.deb" --replace_string="archive/debian/stable/$version/web/jellyfin-web_$version-1_all.deb" --target_file="../settings/conf/web.$debian.$architecture.src"
|
||||||
|
fi
|
||||||
|
ynh_setup_source --dest_dir=$tempdir --source_id="web.$debian.$architecture"
|
||||||
|
|
||||||
# Install the packages
|
# Install the packages
|
||||||
ynh_exec_warn_less apt-get -f install $tempdir/jellyfin-ffmpeg.deb -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold
|
ynh_exec_warn_less dpkg --force-confdef --force-confold -i $tempdir/jellyfin-ffmpeg.deb
|
||||||
ynh_exec_warn_less apt-get -f install $tempdir/jellyfin-server.deb -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold
|
ynh_exec_warn_less dpkg --force-confdef --force-confold -i $tempdir/jellyfin-server.deb
|
||||||
ynh_exec_warn_less apt-get -f install $tempdir/jellyfin-web.deb -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold
|
ynh_exec_warn_less dpkg --force-confdef --force-confold -i $tempdir/jellyfin-web.deb
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE SYSTEMD
|
# RESTORE SYSTEMD
|
||||||
|
@ -130,7 +149,6 @@ ynh_exec_warn_less apt-get -f install $tempdir/jellyfin-web.deb -y -o Dpkg::Opti
|
||||||
ynh_script_progression --message="Restoring the systemd configuration..." --weight=1
|
ynh_script_progression --message="Restoring the systemd configuration..." --weight=1
|
||||||
|
|
||||||
ynh_restore_file --origin_path="/etc/systemd/system/jellyfin.service.d" --not_mandatory
|
ynh_restore_file --origin_path="/etc/systemd/system/jellyfin.service.d" --not_mandatory
|
||||||
ynh_restore_file --origin_path="/lib/systemd/system/jellyfin.service"
|
|
||||||
systemctl enable jellyfin.service --quiet
|
systemctl enable jellyfin.service --quiet
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -145,9 +163,9 @@ needed_ports=()
|
||||||
|
|
||||||
# Integrate service and require to expose the ports if needed
|
# Integrate service and require to expose the ports if needed
|
||||||
if [[ -z ${needed_ports[@]} ]]; then
|
if [[ -z ${needed_ports[@]} ]]; then
|
||||||
yunohost service add $app --description="Jellyfin media center" --log_type="systemd"
|
yunohost service add $app --description="Jellyfin media center"
|
||||||
else
|
else
|
||||||
yunohost service add $app --description="Jellyfin media center" --log_type="systemd" --needs_exposed_ports ${needed_ports[@]}
|
yunohost service add $app --description="Jellyfin media center" --needs_exposed_ports ${needed_ports[@]}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -166,6 +184,16 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1
|
||||||
|
|
||||||
ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Started Jellyfin Media Server" --timeout=15
|
ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Started Jellyfin Media Server" --timeout=15
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# YUNOHOST MULTIMEDIA INTEGRATION
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Adding multimedia directories..." --weight=2
|
||||||
|
|
||||||
|
# Build YunoHost multimedia directories
|
||||||
|
ynh_multimedia_build_main_dir
|
||||||
|
# Allow Jellyfin to write into these directories
|
||||||
|
ynh_multimedia_addaccess $app
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -69,11 +69,14 @@ prepare_source () {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
debians=("buster" "bullseye")
|
||||||
architectures=("amd64" "arm64" "armhf")
|
architectures=("amd64" "arm64" "armhf")
|
||||||
for architecture in "${architectures[@]}"; do
|
for debian in "${debians[@]}"; do
|
||||||
prepare_source --template="../conf/ffmpeg.src.default" --destination="../conf/ffmpeg.$architecture.src" --architecture="$architecture"
|
for architecture in "${architectures[@]}"; do
|
||||||
prepare_source --template="../conf/web.src.default" --destination="../conf/web.$architecture.src" --architecture="$architecture"
|
prepare_source --template="../conf/ffmpeg.src.default" --destination="../conf/ffmpeg.$debian.$architecture.src" --architecture="$architecture"
|
||||||
prepare_source --template="../conf/server.src.default" --destination="../conf/server.$architecture.src" --architecture="$architecture"
|
prepare_source --template="../conf/web.src.default" --destination="../conf/web.$debian.$architecture.src" --architecture="$architecture"
|
||||||
|
prepare_source --template="../conf/server.src.default" --destination="../conf/server.$debian.$architecture.src" --architecture="$architecture"
|
||||||
|
done
|
||||||
done
|
done
|
||||||
|
|
||||||
prepare_source --template="../conf/ldap.src.default" --destination="../conf/ldap.src"
|
prepare_source --template="../conf/ldap.src.default" --destination="../conf/ldap.src"
|
||||||
|
|
|
@ -137,20 +137,38 @@ ynh_add_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
# UPGRADE DEPENDENCIES
|
# UPGRADE DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Upgrading dependencies..." --weight=3
|
ynh_script_progression --message="Upgrading dependencies..." --weight=5
|
||||||
|
|
||||||
|
ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# UPGRADE packages
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Upgrading packages..." --weight=3
|
||||||
|
|
||||||
# Create the temporary directory
|
# Create the temporary directory
|
||||||
tempdir="$(mktemp -d)"
|
tempdir="$(mktemp -d)"
|
||||||
|
|
||||||
# Download the deb files
|
# Download the deb files
|
||||||
ynh_setup_source --dest_dir=$tempdir --source_id="ffmpeg.$architecture"
|
ynh_setup_source --dest_dir=$tempdir --source_id="ffmpeg.$debian.$architecture"
|
||||||
ynh_setup_source --dest_dir=$tempdir --source_id="server.$architecture"
|
# In case of a new version, the url change from https://repo.jellyfin.org/releases/server/debian/versions/stable/server/X.X.X/jellyfin-server_X.X.X-1_$architecture.deb to https://repo.jellyfin.org/archive/debian/stable/X.X.X/server/jellyfin-server_X.X.X-1_$architecture.deb
|
||||||
ynh_setup_source --dest_dir=$tempdir --source_id="web.$architecture"
|
src_url=$(grep 'SOURCE_URL=' "../conf/server.$debian.$architecture.src" | cut -d= -f2-)
|
||||||
|
if ! curl --output /dev/null --silent --head --fail "$src_url"; then
|
||||||
|
ynh_replace_string --match_string="releases/server/debian/versions/stable/server/$version/jellyfin-server_$version-1_$architecture.deb" --replace_string="archive/debian/stable/$version/server/jellyfin-server_$version-1_$architecture.deb" --target_file="../conf/server.$debian.$architecture.src"
|
||||||
|
fi
|
||||||
|
ynh_setup_source --dest_dir=$tempdir --source_id="server.$debian.$architecture"
|
||||||
|
|
||||||
|
# Same for web
|
||||||
|
src_url=$(grep 'SOURCE_URL=' "../conf/web.$debian.$architecture.src" | cut -d= -f2-)
|
||||||
|
if ! curl --output /dev/null --silent --head --fail "$src_url"; then
|
||||||
|
ynh_replace_string --match_string="releases/server/debian/versions/stable/web/$version/jellyfin-web_$version-1_all.deb" --replace_string="archive/debian/stable/$version/web/jellyfin-web_$version-1_all.deb" --target_file="../conf/web.$debian.$architecture.src"
|
||||||
|
fi
|
||||||
|
ynh_setup_source --dest_dir=$tempdir --source_id="web.$debian.$architecture"
|
||||||
|
|
||||||
# Install the packages
|
# Install the packages
|
||||||
ynh_exec_warn_less apt-get -f install $tempdir/jellyfin-ffmpeg.deb -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confnew
|
ynh_exec_warn_less dpkg --force-confdef --force-confnew -i $tempdir/jellyfin-ffmpeg.deb
|
||||||
ynh_exec_warn_less apt-get -f install $tempdir/jellyfin-server.deb -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confnew
|
ynh_exec_warn_less dpkg --force-confdef --force-confnew -i $tempdir/jellyfin-server.deb
|
||||||
ynh_exec_warn_less apt-get -f install $tempdir/jellyfin-web.deb -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confnew
|
ynh_exec_warn_less dpkg --force-confdef --force-confnew -i $tempdir/jellyfin-web.deb
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CREATE DEDICATED USER
|
# CREATE DEDICATED USER
|
||||||
|
@ -163,41 +181,12 @@ ynh_system_user_create --username=$app
|
||||||
#=================================================
|
#=================================================
|
||||||
# MODIFY A CONFIG FILE
|
# MODIFY A CONFIG FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
ynh_script_progression --message="Setting up configuration files..." --weight=2
|
||||||
|
|
||||||
# Check if network.xml exists (introduced in v10.7)
|
# TODO: investigate if we can avoid overriding system.xml
|
||||||
if [ -f "/etc/jellyfin/network.xml" ]; then
|
#ynh_add_config --template="system.xml" --destination="$config_path/system.xml"
|
||||||
ynh_script_progression --message="Configuring the settings..." --weight=1
|
ynh_add_config --template="network.xml" --destination="$config_path/network.xml"
|
||||||
|
ynh_add_config --template="logging.json" --destination="$config_path/logging.json"
|
||||||
ynh_backup_if_checksum_is_different --file="$config_path/network.xml"
|
|
||||||
ynh_backup_if_checksum_is_different --file="$config_path/system.xml"
|
|
||||||
|
|
||||||
# Set permissions to app files
|
|
||||||
chown -R $app: $final_path
|
|
||||||
|
|
||||||
# Load services once to generate network.xml
|
|
||||||
ynh_systemd_action --service_name=$app --action="restart" --log_path="systemd" --line_match="Started Jellyfin Media Server" --timeout=15
|
|
||||||
ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd" --line_match="Stopped Jellyfin Media Server" --timeout=15
|
|
||||||
|
|
||||||
# Port config
|
|
||||||
ynh_replace_string --match_string="<PublicPort>8096</PublicPort>" --replace_string="<PublicPort>$port</PublicPort>" --target_file="$config_path/network.xml"
|
|
||||||
ynh_replace_string --match_string="<HttpServerPortNumber>8096</HttpServerPortNumber>" --replace_string="<HttpServerPortNumber>$port</HttpServerPortNumber>" --target_file="$config_path/network.xml"
|
|
||||||
|
|
||||||
# Enable IPv6
|
|
||||||
ynh_replace_string --match_string="<EnableIPV6>false</EnableIPV6>" --replace_string="<EnableIPV6>true</EnableIPV6>" --target_file="$config_path/network.xml"
|
|
||||||
|
|
||||||
# BaseUrl config
|
|
||||||
ynh_replace_string --match_string="<BaseUrl />" --replace_string="<BaseUrl>$path_url</BaseUrl>" --target_file="$config_path/network.xml"
|
|
||||||
|
|
||||||
ynh_store_file_checksum --file="$config_path/network.xml"
|
|
||||||
ynh_store_file_checksum --file="$config_path/system.xml"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Lower logging verbosity
|
|
||||||
# But first, if missing, copy it from its template
|
|
||||||
if [ ! -f "$config_path/logging.json" ]; then
|
|
||||||
cp "$config_path/logging.default.json" "$config_path/logging.json"
|
|
||||||
fi
|
|
||||||
ynh_exec_fully_quiet ynh_replace_string --match_string="\"Default\": \"Information\"" --replace_string="\"Default\": \"Error\"" --target_file="$config_path/logging.json"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL LDAP PLUGIN
|
# INSTALL LDAP PLUGIN
|
||||||
|
@ -206,7 +195,17 @@ ynh_script_progression --message="Installing LDAP plugin..." --weight=2
|
||||||
|
|
||||||
ynh_setup_source --dest_dir="/var/lib/jellyfin/plugins/LDAP Authentication" --source_id=ldap
|
ynh_setup_source --dest_dir="/var/lib/jellyfin/plugins/LDAP Authentication" --source_id=ldap
|
||||||
mkdir -p /var/lib/jellyfin/plugins/configurations/
|
mkdir -p /var/lib/jellyfin/plugins/configurations/
|
||||||
ynh_add_config --template="../conf/LDAP-Auth.xml" --destination="/var/lib/jellyfin/plugins/configurations/LDAP-Auth.xml"
|
ynh_add_config --template="LDAP-Auth.xml" --destination="/var/lib/jellyfin/plugins/configurations/LDAP-Auth.xml"
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# YUNOHOST MULTIMEDIA INTEGRATION
|
||||||
|
#=================================================
|
||||||
|
ynh_script_progression --message="Adding multimedia directories..." --weight=2
|
||||||
|
|
||||||
|
# Build YunoHost multimedia directories
|
||||||
|
ynh_multimedia_build_main_dir
|
||||||
|
# Allow Jellyfin to write into these directories
|
||||||
|
ynh_multimedia_addaccess $app
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
@ -238,9 +237,9 @@ needed_ports=()
|
||||||
|
|
||||||
# Integrate service and require to expose the ports if needed
|
# Integrate service and require to expose the ports if needed
|
||||||
if [[ -z ${needed_ports[@]} ]]; then
|
if [[ -z ${needed_ports[@]} ]]; then
|
||||||
yunohost service add $app --description="Jellyfin media center" --log_type="systemd"
|
yunohost service add $app --description="Jellyfin media center"
|
||||||
else
|
else
|
||||||
yunohost service add $app --description="Jellyfin media center" --log_type="systemd" --needs_exposed_ports ${needed_ports[@]}
|
yunohost service add $app --description="Jellyfin media center" --needs_exposed_ports ${needed_ports[@]}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue