mirror of
https://github.com/YunoHost-Apps/jellyfin_ynh.git
synced 2024-09-03 19:26:29 +02:00
Update install
This commit is contained in:
parent
a20adb6bd5
commit
701f3bde73
1 changed files with 18 additions and 18 deletions
|
@ -52,20 +52,20 @@ final_path=/opt/yunohost/$app
|
||||||
test ! -e "$final_path" || ynh_die "This path already contains a folder"
|
test ! -e "$final_path" || ynh_die "This path already contains a folder"
|
||||||
|
|
||||||
# Normalize the url path syntax
|
# Normalize the url path syntax
|
||||||
path_url=$(ynh_normalize_url_path $path_url)
|
path_url=$(ynh_normalize_url_path "$path_url")
|
||||||
|
|
||||||
# Check web path availability
|
# Check web path availability
|
||||||
ynh_webpath_available $domain $path_url
|
ynh_webpath_available "$domain" "$path_url"
|
||||||
# Register (book) web path
|
# Register (book) web path
|
||||||
ynh_webpath_register $app $domain $path_url
|
ynh_webpath_register "$app" "$domain" "$path_url"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STORE SETTINGS FROM MANIFEST
|
# STORE SETTINGS FROM MANIFEST
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_app_setting_set $app domain $domain
|
ynh_app_setting_set "$app" domain "$domain"
|
||||||
ynh_app_setting_set $app path $path_url
|
ynh_app_setting_set "$app" path "$path_url"
|
||||||
ynh_app_setting_set $app is_public $is_public
|
ynh_app_setting_set "$app" is_public "$is_public"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL DEPENDENCIES
|
# INSTALL DEPENDENCIES
|
||||||
|
@ -94,24 +94,24 @@ ynh_install_app_dependencies at libass5 libbluray1 libdrm2 libmp3lame0 libopus0
|
||||||
# Find a free port
|
# Find a free port
|
||||||
port=$(ynh_find_port 8096)
|
port=$(ynh_find_port 8096)
|
||||||
# Open this port
|
# Open this port
|
||||||
yunohost firewall allow --no-upnp TCP $port 2>&1
|
yunohost firewall allow --no-upnp TCP "$port" 2>&1
|
||||||
ynh_app_setting_set $app port $port
|
ynh_app_setting_set "$app" port "$port"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
ynh_app_setting_set $app final_path $final_path
|
ynh_app_setting_set "$app" final_path "$final_path"
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from jellyfin-ffmpeg-[arch].src
|
# Download, check integrity, uncompress and patch the source from jellyfin-ffmpeg-[arch].src
|
||||||
case `uname -m` in
|
case $(uname -m) in
|
||||||
x86_64) ynh_setup_source "$final_path" "jellyfin-ffmpeg-amd64" ;;
|
x86_64) ynh_setup_source "$final_path" "jellyfin-ffmpeg-amd64" ;;
|
||||||
aarch64) ynh_setup_source "$final_path" "jellyfin-ffmpeg-arm64" ;;
|
aarch64) ynh_setup_source "$final_path" "jellyfin-ffmpeg-arm64" ;;
|
||||||
*) ynh_die "Unknown arch" ;;
|
*) ynh_die "Unknown arch" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from jellyfin-[arch].src
|
# Download, check integrity, uncompress and patch the source from jellyfin-[arch].src
|
||||||
case `uname -m` in
|
case $(uname -m) in
|
||||||
x86_64) ynh_setup_source "$final_path" "jellyfin-amd64" ;;
|
x86_64) ynh_setup_source "$final_path" "jellyfin-amd64" ;;
|
||||||
aarch64) ynh_setup_source "$final_path" "jellyfin-arm64" ;;
|
aarch64) ynh_setup_source "$final_path" "jellyfin-arm64" ;;
|
||||||
*) ynh_die "Unknown arch" ;;
|
*) ynh_die "Unknown arch" ;;
|
||||||
|
@ -124,9 +124,9 @@ ynh_setup_source "$final_path" "jellyfin-plugin-ldapauth"
|
||||||
# INSTALL JELLYFIN
|
# INSTALL JELLYFIN
|
||||||
#==============================================
|
#==============================================
|
||||||
|
|
||||||
dpkg --install $final_path/jellyfin-ffmpeg.deb
|
dpkg --install "$final_path"/jellyfin-ffmpeg.deb
|
||||||
dpkg --install $final_path/jellyfin.deb
|
dpkg --install "$final_path"/jellyfin.deb
|
||||||
rm $final_path/*.deb
|
rm "$final_path"/*.deb
|
||||||
|
|
||||||
#==============================================
|
#==============================================
|
||||||
# INSTALL LDAP PLUGIN
|
# INSTALL LDAP PLUGIN
|
||||||
|
@ -136,8 +136,8 @@ plugins_path=/var/lib/jellyfin/plugins
|
||||||
ldap_plugin_path="$plugins_path/LDAP Authentication"
|
ldap_plugin_path="$plugins_path/LDAP Authentication"
|
||||||
|
|
||||||
mkdir -p "$ldap_plugin_path"
|
mkdir -p "$ldap_plugin_path"
|
||||||
unzip $final_path/jellyfin-plugin-ldapauth.zip -d "$ldap_plugin_path"
|
unzip "$final_path"/jellyfin-plugin-ldapauth.zip -d "$ldap_plugin_path"
|
||||||
rm $final_path/*.zip
|
rm "$final_path"/*.zip
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
|
@ -151,7 +151,7 @@ ynh_add_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Create a system user
|
# Create a system user
|
||||||
ynh_system_user_create $app
|
ynh_system_user_create "$app"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# MODIFY A CONFIG FILE
|
# MODIFY A CONFIG FILE
|
||||||
|
@ -195,7 +195,7 @@ ynh_store_file_checksum "$plugins_conf_file"
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# If app is public, add url to SSOWat conf as skipped_uris
|
# If app is public, add url to SSOWat conf as skipped_uris
|
||||||
if [ $is_public -eq 1 ]; then
|
if [ "$is_public" -eq 1 ]; then
|
||||||
# unprotected_uris allows SSO credentials to be passed anyway.
|
# unprotected_uris allows SSO credentials to be passed anyway.
|
||||||
ynh_app_setting_set "$app" unprotected_uris "/"
|
ynh_app_setting_set "$app" unprotected_uris "/"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue