From 3cd523503312bf5169fbf83c2fec0411c7962ae9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 2 Oct 2023 16:19:40 +0200 Subject: [PATCH] Update install --- scripts/install | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/scripts/install b/scripts/install index b3120f7..f2d0d65 100644 --- a/scripts/install +++ b/scripts/install @@ -130,24 +130,24 @@ ynh_local_curl "/install/step5.php" \ ynh_exec_fully_quiet sleep 5 -#ynh_script_progression --message="configuring LDAP" --weight=1 +ynh_script_progression --message="configuring LDAP" --weight=1 -# # Populate the LDAP parameters -# ynh_mysql_connect_as --user=$db_name --password=$db_pwd --database=$db_name < ../conf/sql/ldap.sql +# Populate the LDAP parameters +ynh_mysql_connect_as --user=$db_name --password=$db_pwd --database=$db_name < ../conf/sql/ldap.sql -# # Populate the database with YNH users. -# ynh_mysql_connect_as --user=$db_name --password=$db_pwd --database=$db_name < ../conf/sql/ldap_user.sql +# Populate the database with YNH users. +ynh_mysql_connect_as --user=$db_name --password=$db_pwd --database=$db_name < ../conf/sql/ldap_user.sql -# if php$phpversion $install_dir/scripts/user/sync_users_ldap2dolibarr.php commitiferror --server=localhost -y; then -# ynh_print_info --message="LDAP user update ok" -# else -# ynh_print_info --message="LDAP user update ended with error" -# fi +if php$phpversion $install_dir/scripts/user/sync_users_ldap2dolibarr.php commitiferror --server=localhost -y; then + ynh_print_info --message="LDAP user update ok" +else + ynh_print_info --message="LDAP user update ended with error" +fi #================================================= # MODIFY A CONFIG FILE #================================================= -#ynh_script_progression --message="configuring config file" --weight=1 +ynh_script_progression --message="configuring config file" --weight=1 # Setup HTTP auth in conf ynh_replace_string --match_string="dolibarr_main_authentication='dolibarr'" --replace_string="dolibarr_main_authentication='http'" --target_file="$install_dir/htdocs/conf/conf.php"