From 59ffb081ad7a75c35874fcf9f94e8ef51725b858 Mon Sep 17 00:00:00 2001 From: polytan02 Date: Fri, 17 Feb 2017 20:11:10 +0000 Subject: [PATCH] Cleaning --- scripts/install | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/install b/scripts/install index e4058b3..9ce4b14 100644 --- a/scripts/install +++ b/scripts/install @@ -46,15 +46,12 @@ db_user=${db_user//-/_} # mariadb ne supporte pas les - dans les noms de base de # Génère un mot de passe aléatoire. db_pwd=$(ynh_string_random) CHECK_VAR "$db_pwd" "db_pwd empty" -# Utilise '$app' comme nom d'utilisateur et de base de donnée -# Initialise la base de donnée et stocke le mot de passe mysql. ynh_mysql_create_db "$db_user" "$db_user" $db_pwd ynh_app_setting_set $app mysqlpwd $db_pwd ynh_app_setting_set $app db_user $db_user sed -i "s@YNH_PMA_USER@$db_user@g" ../conf/create_db.sql sudo mysql -u root -p$(sudo cat /etc/yunohost/mysql) < ../conf/create_db.sql sudo sed -i "s@phpmyadmin@$db_user@g" $final_path/sql/create_tables.sql -#sudo sed -i "s@YNH_PMA_USER@$db_user@g" $final_path/sql/create_tables.sql sudo mysql -u $db_user -p$db_pwd < $final_path/sql/create_tables.sql # Configuration