1
0
Fork 0
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:
liberodark 2020-05-30 21:47:28 +02:00 committed by GitHub
parent fa55e07e55
commit 39a3ea99c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,6 +29,7 @@ domain=$YNH_APP_ARG_DOMAIN
path_url=$YNH_APP_ARG_PATH
is_public=$YNH_APP_ARG_IS_PUBLIC
password=$YNH_APP_ARG_PASSWORD
admin=$YNH_APP_ARG_ADMIN
### If it's a multi-instance app, meaning it can be installed several times independently
### The id of the app as stated in the manifest is available as $YNH_APP_ID
@ -66,6 +67,7 @@ ynh_webpath_register "$app" "$domain" "$path_url"
ynh_app_setting_set "$app" domain "$domain"
ynh_app_setting_set "$app" path "$path_url"
ynh_app_setting_set "$app" is_public "$is_public"
ynh_app_setting_set $app admin $admin
#=================================================
# INSTALL DEPENDENCIES
@ -178,6 +180,11 @@ ynh_replace_string --match_string="<HttpServerPortNumber>8096</HttpServerPortNum
# BaseUrl
ynh_replace_string --match_string="<BaseUrl />" --replace_string="<BaseUrl>$path_url</BaseUrl>" --target_file="/etc/jellyfin/system.xml"
# Setting up the admin user
userdir="/etc/jellyfin/users/$admin"
mkdir -p "$userdir"
cp ../conf/policy.xml "$userdir/"
#=================================================
# STORE THE CONFIG FILE CHECKSUM
#=================================================