1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jellyfin_ynh.git synced 2024-09-03 19:26:29 +02:00

Merge pull request #2 from YunoHost-Apps/10.3.7

10.3.7
This commit is contained in:
liberodark 2019-07-31 03:19:05 +02:00 committed by GitHub
commit b4ccc7f50a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 33 additions and 24 deletions

View file

@ -1,7 +1,7 @@
# Jellyfin app for YunoHost
Jellyfin Server
**Shipped version:** 10.2.2
**Shipped version:** 10.3.7
- [Yunohost project](https://yunohost.org)
- [Jellyfin website](https://github.com/jellyfin/jellyfin)

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/jellyfin/jellyfin/releases/download/v10.2.2/jellyfin_10.2.2-1_debian-amd64.deb
SOURCE_SUM=7a4cc63fd8dfd5535717eae931151dead66293b37246110330dfc1174dac72f3abde75477efed4983c0d2c51331c0efa6ef5b544a2579db6cdd21e80b114eb5c
SOURCE_URL=https://github.com/YunoHost-Apps/jellyfin_ynh/releases/download/10.3.7/jellyfin_10.3.7-1_amd64.deb
SOURCE_SUM=8d50ddcf8a222d3bab2e3a51c4e8d824889edcb4e76e6df4dbfc68fccfd30420937a598e7d1e3c9832cace5aa038536a8d32dfc82d33d419f6d8b9d52880682e
SOURCE_SUM_PRG=sha512sum
SOURCE_FORMAT=deb
SOURCE_IN_SUBDIR=false

7
conf/jellyfin-ffmpeg.src Normal file
View file

@ -0,0 +1,7 @@
SOURCE_URL=https://github.com/YunoHost-Apps/jellyfin_ynh/releases/download/10.3.7/jellyfin-ffmpeg_4.0.4-3-stretch_amd64.deb
SOURCE_SUM=b3bad07eff89f825385a0424a6c7a53c010455fe1ffe7beca3fb8f27a9dd35cdf2b445e00e1b0b8ee1ffe40967a9ed87bb954bc6abdd1b1bf03229ef53615bae
SOURCE_SUM_PRG=sha512sum
SOURCE_FORMAT=deb
SOURCE_IN_SUBDIR=false
SOURCE_EXTRACT=false
SOURCE_FILENAME=jellyfin-ffmpeg.deb

View file

@ -6,7 +6,7 @@
"en": "Jellyfin package for YunoHost.",
"fr": "Jellyfin pour YunoHost."
},
"version": "10.2.2",
"version": "10.3.7",
"url": "https://github.com/jellyfin/jellyfin",
"license": "GPL-2.0",
"maintainer": {

View file

@ -66,26 +66,6 @@ ynh_app_setting_set $app domain $domain
ynh_app_setting_set $app path $path_url
ynh_app_setting_set $app is_public $is_public
#=================================================
# INSTALL DEPENDENCIES
#=================================================
ynh_print_info "Installing dependencies..."
### `ynh_install_app_dependencies` allows you to add any "apt" dependencies to the package.
### Those deb packages will be installed as dependencies of this package.
### If you're not using this helper:
### - Remove the section "REMOVE DEPENDENCIES" in the remove script
### - As well as the section "REINSTALL DEPENDENCIES" in the restore script
### - And the section "UPGRADE DEPENDENCIES" in the upgrade script
wget -O - https://repo.jellyfin.org/debian/jellyfin_team.gpg.key | apt-key add -
echo "deb [arch=amd64] https://repo.jellyfin.org/debian $( lsb_release -c -s ) main" >> /etc/apt/sources.list.d/jellyfin.list
ynh_package_update
ynh_install_app_dependencies jellyfin
#=================================================
# FIND AND OPEN A PORT
#=================================================
@ -101,6 +81,26 @@ port=$(ynh_find_port 8096)
yunohost firewall allow --no-upnp TCP $port 2>&1
ynh_app_setting_set $app port $port
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
ynh_app_setting_set $jellyfin-ffmpeg final_path $final_path
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source "$final_path"
ynh_app_setting_set $app final_path $final_path
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source "$final_path"
#==============================================
# INSTALL JELLYFIN
#==============================================
dpkg --install $final_path/jellyfin-ffmpeg.deb
dpkg --install $final_path/jellyfin.deb
#=================================================
# NGINX CONFIGURATION
#=================================================
@ -159,4 +159,6 @@ if [ $is_public -eq 1 ]; then
fi
# Reload services
systemctl enable jellyfin
systemctl start jellyfin
systemctl reload nginx