From e11b722225cda2566c38d377ccff34c2406230b2 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 29 Apr 2021 00:44:54 +0200 Subject: [PATCH] Fix settings in database --- scripts/install | 4 ++-- scripts/upgrade | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index bccdbff..e799ba9 100644 --- a/scripts/install +++ b/scripts/install @@ -166,12 +166,12 @@ pushd $final_path popd # Email setup -ynh_mysql_execute_as_root --database=$db_name < ../conf/mail.sql +ynh_mysql_connect_as --user=$app --password="$db_pwd" --database=$db_name < ../conf/mail.sql # Enable and set up the LDAP auth extension ynh_script_progression --message="Enabling and configuring LDAP extension..." --weight=2 activate_flarum_extension $db_name "tituspijean-auth-ldap" -ynh_mysql_execute_as_root --database=$db_name < ../conf/ldap.sql +ynh_mysql_connect_as --user=$app --password="$db_pwd" --database=$db_name < ../conf/ldap.sql # Install, activate and set language extensions case $language in diff --git a/scripts/upgrade b/scripts/upgrade index b7add8a..1f14995 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -202,7 +202,7 @@ then # Install and activate the LDAP auth extension activate_flarum_extension $db_name "tituspijean-auth-ldap" # Configure LDAP auth extension - ynh_mysql_execute_as_root --database=$db_name < ../conf/ldap.sql + ynh_mysql_connect_as --user=$app --password="$db_pwd" --database=$db_name < ../conf/ldap.sql fi # Install, activate and set language extensions