diff --git a/scripts/install b/scripts/install index e376cad..e90302e 100644 --- a/scripts/install +++ b/scripts/install @@ -113,6 +113,7 @@ sudo php index_cli.php \ --db_name=$db_name \ --db_driver=amysqli \ --db_port=3306 \ + --language=${language:0:2} \ --lastname=$admin_prestashop \ --password=$pass \ --email=$email \ @@ -123,18 +124,6 @@ popd sudo rm -fr $final_path/install -#================================================= -# Insert de l'utilisateur dans la base -#================================================= -if [ "$language"=="fr_FR" ] -then - id_lang=2 -elif [ "$language"=="en_EN" ]; then - id_lang=1 -fi - -mysql -e "INSERT INTO _ps_employee (id_employee, id_profile, id_lang, lastname, firstname, email, passwd, last_passwd_gen, stats_date_from, stats_date_to, stats_compare_from, stats_compare_to, stats_compare_option, preselect_date_range, bo_color, bo_theme, bo_css, default_tab, bo_width, bo_menu, active, optin, id_last_order, id_last_customer_message, id_last_customer, last_connection_date, reset_password_token, reset_password_validity) VALUES (NULL, '1', '$id_lang', '', '', '$admin_prestashop@$domain', MD5('$pass'), CURRENT_TIMESTAMP, NULL, NULL, NULL, NULL, '1', NULL, NULL, NULL, NULL, '0', '0', '1', '1', '1', '0', '0', '0', NULL, NULL, NULL);" -u $db_user -p$db_pwd $db_name - #================================================= # check les permissions #=================================================