From 39be9a3b28bbe6ce6a649015e960219568766ef0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Wed, 24 Jan 2024 22:58:29 +0100 Subject: [PATCH] Update ldap config also on update --- scripts/upgrade | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 33f25e4..dafa757 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -98,6 +98,10 @@ ynh_secure_remove --file="$install_dir/templates" ynh_add_config --template=app.ini --destination="$install_dir/custom/conf/app.ini" _set_permissions +# Update ldap config +ynh_replace_string --match_string=__APP__ --replace_string="$app" --target_file=../conf/login_source.sql +ynh_mysql_connect_as "$db_user" "$db_pwd" "$db_name" < ../conf/login_source.sql + #================================================= # REAPPLY SYSTEM CONFIGURATIONS #=================================================