From fbb3be4ac51da44e9b02026af0d5f1847ee01f38 Mon Sep 17 00:00:00 2001 From: magikcypress Date: Sat, 4 Mar 2017 15:52:45 +0100 Subject: [PATCH] On insert l'utilisateur dans la base --- scripts/install | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/install b/scripts/install index b192301..f709ec1 100644 --- a/scripts/install +++ b/scripts/install @@ -121,6 +121,18 @@ sudo php index_cli.php \ --prefix=_ps_ popd +#================================================= +# 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'), $langURRENT_TIME1TAMP, 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 #=================================================