diff --git a/scripts/install b/scripts/install
index a0345ab..6ff8f9d 100644
--- a/scripts/install
+++ b/scripts/install
@@ -164,9 +164,18 @@ 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"
+# Load services once to generate system.xml
+systemctl enable jellyfin
+systemctl start jellyfin
+sleep 5
+systemctl stop jellyfin
+
# Port config
ynh_replace_string --match_string="8096" --replace_string="$port" --target_file="/etc/jellyfin/system.xml"
+# BaseUrl
+ynh_replace_string --match_string="" --replace_string="$path_url" --target_file="/etc/jellyfin/system.xml"
+
#=================================================
# STORE THE CONFIG FILE CHECKSUM
#=================================================
@@ -202,6 +211,5 @@ if [ "$is_public" -eq 1 ]; then
fi
# Reload services
-systemctl enable jellyfin
systemctl start jellyfin
systemctl reload nginx