diff --git a/scripts/install b/scripts/install index 8eb8f5a..6dc47d7 100644 --- a/scripts/install +++ b/scripts/install @@ -66,6 +66,26 @@ 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 | sudo 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 #================================================= @@ -81,20 +101,6 @@ 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 $app final_path $final_path -# Download, check integrity, uncompress and patch the source from app.src -ynh_setup_source "$final_path" - -#============================================== -# INSTALL EMBY -#============================================== - -dpkg --install $final_path/jellyfin.deb - #================================================= # NGINX CONFIGURATION #=================================================