mirror of
https://github.com/YunoHost-Apps/prestashop_ynh.git
synced 2024-09-03 20:06:39 +02:00
On insert l'utilisateur dans la base
This commit is contained in:
parent
36b7e66874
commit
fbb3be4ac5
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue