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
4f489515fe
commit
02bd9c0e36
1 changed files with 8 additions and 1 deletions
|
@ -67,7 +67,7 @@ ynh_webpath_register "$app" "$domain" "$path_url"
|
||||||
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"
|
||||||
ynh_app_setting_set $app admin $admin
|
ynh_app_setting_set "$app" admin "$admin"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL DEPENDENCIES
|
# INSTALL DEPENDENCIES
|
||||||
|
@ -160,6 +160,8 @@ ynh_system_user_create "$app"
|
||||||
#=================================================
|
#=================================================
|
||||||
# MODIFY A CONFIG FILE
|
# MODIFY A CONFIG FILE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
|
# LDAP config
|
||||||
plugins_conf_path=$plugins_path/configurations
|
plugins_conf_path=$plugins_path/configurations
|
||||||
plugins_conf_file=$plugins_conf_path/LDAP-Auth.xml
|
plugins_conf_file=$plugins_conf_path/LDAP-Auth.xml
|
||||||
|
|
||||||
|
@ -180,6 +182,9 @@ ynh_replace_string --match_string="<HttpServerPortNumber>8096</HttpServerPortNum
|
||||||
# BaseUrl
|
# BaseUrl
|
||||||
ynh_replace_string --match_string="<BaseUrl />" --replace_string="<BaseUrl>$path_url</BaseUrl>" --target_file="/etc/jellyfin/system.xml"
|
ynh_replace_string --match_string="<BaseUrl />" --replace_string="<BaseUrl>$path_url</BaseUrl>" --target_file="/etc/jellyfin/system.xml"
|
||||||
|
|
||||||
|
# Port config
|
||||||
|
ynh_replace_string --match_string="<HttpServerPortNumber>8096</HttpServerPortNumber>" --replace_string="<HttpServerPortNumber>$port</HttpServerPortNumber>" --target_file="/etc/jellyfin/system.xml"
|
||||||
|
|
||||||
# Setting up the admin user
|
# Setting up the admin user
|
||||||
userdir="/etc/jellyfin/users/$admin"
|
userdir="/etc/jellyfin/users/$admin"
|
||||||
mkdir -p "$userdir"
|
mkdir -p "$userdir"
|
||||||
|
@ -196,6 +201,7 @@ cp ../conf/policy.xml "$userdir/"
|
||||||
# Calculate and store the config file checksum into the app settings
|
# Calculate and store the config file checksum into the app settings
|
||||||
ynh_store_file_checksum "$plugins_conf_file"
|
ynh_store_file_checksum "$plugins_conf_file"
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -209,6 +215,7 @@ ynh_store_file_checksum "$plugins_conf_file"
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
#chown -R root: /etc/loolwsd
|
#chown -R root: /etc/loolwsd
|
||||||
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue