mirror of
https://github.com/YunoHost-Apps/prestashop_ynh.git
synced 2024-09-03 20:06:39 +02:00
Suppression de la requête INSERT
This commit is contained in:
parent
507191146c
commit
53f26cbea7
1 changed files with 1 additions and 12 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue