From dae441deb518f358a07d254cf94ba346b5130fb1 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Mon, 23 Mar 2020 11:18:22 +0000 Subject: [PATCH] [fix] enforce port in system.xml Closes #6 --- scripts/install | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/install b/scripts/install index 2fafae3..1372053 100644 --- a/scripts/install +++ b/scripts/install @@ -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="8096" --replace_string="$port" --target_file="/etc/jellyfin/sys$ + #================================================= # STORE THE CONFIG FILE CHECKSUM #=================================================