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