From 9062b2e9e0a059e63bc2a5eed1d09c0aef1c40fb Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 6 Jul 2021 12:48:08 +0200 Subject: [PATCH] Update install --- scripts/install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 3eb8a33..5b70ff5 100644 --- a/scripts/install +++ b/scripts/install @@ -81,7 +81,9 @@ ynh_app_setting_set --app=$app --key=db_name --value=$db_name ynh_mysql_setup_db --db_user=$db_user --db_name=$db_name # Set the user chosen at installation as administrator -#ynh_mysql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name" < $final_path/db/SCHEMA.sql +ynh_mysql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name" < $final_path/db/SCHEMA.sql + +ynh_mysql_connect_as --user="$db_user" --password="$db_pwd" --database="$db_name" < CREATE USER '$db_user'@'%' IDENTIFIED BY '$db_pwd'; GRANT ALL ON `$db_name`.* TO '$db_user'@'%'; FLUSH PRIVILEGES; #================================================= # NGINX CONFIGURATION