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

[fix] enforce port in system.xml

Closes #6
This commit is contained in:
tituspijean 2020-03-23 11:18:22 +00:00
parent 8b9f47e421
commit dae441deb5

View file

@ -158,6 +158,8 @@ ynh_system_user_create $app
#=================================================
# MODIFY A CONFIG FILE
#=================================================
# LDAP config
plugins_conf_path=$plugins_path/configurations
plugins_conf_file=$plugins_conf_path/LDAP-Auth.xml
@ -166,6 +168,9 @@ cp ../conf/LDAP-Auth.xml "$plugins_conf_file"
ynh_replace_string --match_string="__BINDPASSWORD__" --replace_string="$password" --target_file="$plugins_conf_file"
chown -R jellyfin:jellyfin "$plugins_path"
# Port config
ynh_replace_string --match_string="<HttpServerPortNumber>8096</HttpServerPortNumber>" --replace_string="<HttpServerPortNumber>$port</HttpServerPortNumber>" --target_file="/etc/jellyfin/sys$
#=================================================
# STORE THE CONFIG FILE CHECKSUM
#=================================================