From 21eb013e7da4158ad94f4a2cadddc9adeb86cd1d Mon Sep 17 00:00:00 2001 From: tituspijean Date: Wed, 15 Sep 2021 00:08:54 +0200 Subject: [PATCH] Always upgrade LDAP plugin --- scripts/upgrade | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 6b0a62a..ce19637 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -202,15 +202,11 @@ ynh_exec_fully_quiet ynh_replace_string --match_string="\"Default\": \"Informati #================================================= # INSTALL LDAP PLUGIN #================================================= +ynh_script_progression --message="Installing LDAP plugin..." --weight=2 -# Install it only if the plugin directory does not exist -if [ ! -e "/var/lib/jellyfin/plugins/LDAP Authentication" ]; then - ynh_script_progression --message="Installing LDAP plugin..." --weight=2 - - ynh_setup_source --dest_dir="/var/lib/jellyfin/plugins/LDAP Authentication" --source_id=ldap - mkdir -p /var/lib/jellyfin/plugins/configurations/ - ynh_add_config --template="../conf/LDAP-Auth.xml" --destination="/var/lib/jellyfin/plugins/configurations/LDAP-Auth.xml" -fi +ynh_setup_source --dest_dir="/var/lib/jellyfin/plugins/LDAP Authentication" --source_id=ldap +mkdir -p /var/lib/jellyfin/plugins/configurations/ +ynh_add_config --template="../conf/LDAP-Auth.xml" --destination="/var/lib/jellyfin/plugins/configurations/LDAP-Auth.xml" #================================================= # GENERIC FINALIZATION