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

Always upgrade LDAP plugin

This commit is contained in:
tituspijean 2021-09-15 00:08:54 +02:00
parent 0b679ecbc9
commit 21eb013e7d

View file

@ -202,15 +202,11 @@ ynh_exec_fully_quiet ynh_replace_string --match_string="\"Default\": \"Informati
#================================================= #=================================================
# INSTALL LDAP PLUGIN # INSTALL LDAP PLUGIN
#================================================= #=================================================
ynh_script_progression --message="Installing LDAP plugin..." --weight=2
# Install it only if the plugin directory does not exist ynh_setup_source --dest_dir="/var/lib/jellyfin/plugins/LDAP Authentication" --source_id=ldap
if [ ! -e "/var/lib/jellyfin/plugins/LDAP Authentication" ]; then mkdir -p /var/lib/jellyfin/plugins/configurations/
ynh_script_progression --message="Installing LDAP plugin..." --weight=2 ynh_add_config --template="../conf/LDAP-Auth.xml" --destination="/var/lib/jellyfin/plugins/configurations/LDAP-Auth.xml"
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
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION