From 94916618c1ee843a4f20e3ba95b4bfd7bad0838c Mon Sep 17 00:00:00 2001 From: Jimmy Monin Date: Sat, 28 Mar 2020 10:17:23 +0100 Subject: [PATCH] Workaround for warnings preventing successful WS API calls --- scripts/upgrade | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index b5029ad..348aa2d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -243,6 +243,9 @@ ynh_store_file_checksum --file="$final_path/local/config/database.inc.php" #================================================= ynh_script_progression --message="Configuring LDAP plugin..." +# Disable LDAP plugin to avoid warning messages during API call +ynh_mysql_connect_as --user=$db_name --password=$db_pwd --database=$db_name <<< "DELETE FROM plugins WHERE id='Ldap_Login';" + # Activate the LDAP plugin using the WS API # Login with admin account