mirror of
https://github.com/YunoHost-Apps/fittrackee_ynh.git
synced 2024-09-03 18:36:16 +02:00
fix password
This commit is contained in:
parent
3d1275a430
commit
e7fe9951db
4 changed files with 10 additions and 4 deletions
|
@ -40,6 +40,11 @@ ram.runtime = "50M"
|
|||
# this is a generic question - ask strings are automatically handled by Yunohost's core
|
||||
type = "user"
|
||||
|
||||
[install.password]
|
||||
help.en = "Choose a password for your admin user here."
|
||||
help.fr = "Choisissez un mot de passe pour l’utilisateur admin ici."
|
||||
type = "password"
|
||||
|
||||
[install.weather_provider]
|
||||
ask.en = "(Optional) Choose your weather provider between Darksky and Visual Crossing"
|
||||
ask.fr = "(Optionnel) Choisissez votre fournisseur météo entre Darksky et Visual Crossing"
|
||||
|
|
|
@ -13,7 +13,8 @@ source /usr/share/yunohost/helpers
|
|||
# LOAD SETTINGS
|
||||
#=================================================
|
||||
|
||||
admin_mail=$(ynh_user_get_info --username=$admin --key=username)
|
||||
admin=$(ynh_user_get_info --username=$admin --key=username)
|
||||
admin_mail=$(ynh_user_get_info --username=$admin --key=mail)
|
||||
|
||||
#=================================================
|
||||
# STANDARD UPGRADE STEPS
|
||||
|
|
|
@ -11,7 +11,6 @@ source /usr/share/yunohost/helpers
|
|||
|
||||
admin=$(ynh_user_get_info --username=$admin --key=username)
|
||||
admin_mail=$(ynh_user_get_info --username=$admin --key=mail)
|
||||
admin_password=$(ynh_user_get_info --username=$admin --key=password)
|
||||
|
||||
#=================================================
|
||||
# LOGROTATE
|
||||
|
@ -70,7 +69,7 @@ popd
|
|||
|
||||
ynh_exec_warn_less $install_dir/.venv/bin/ftcli db upgrade
|
||||
|
||||
ynh_exec_warn_less $install_dir/.venv/bin/ftcli users create $admin --email $admin_mail --password $admin_password
|
||||
ynh_exec_warn_less $install_dir/.venv/bin/ftcli users create $admin --email $admin_mail --password $password
|
||||
|
||||
ynh_exec_warn_less $install_dir/.venv/bin/ftcli users update $admin --set-admin true
|
||||
|
||||
|
|
|
@ -13,7 +13,8 @@ source /usr/share/yunohost/helpers
|
|||
# LOAD SETTINGS
|
||||
#=================================================
|
||||
|
||||
admin_mail=$(ynh_user_get_info --username=$admin --key=username)
|
||||
admin=$(ynh_user_get_info --username=$admin --key=username)
|
||||
admin_mail=$(ynh_user_get_info --username=$admin --key=mail)
|
||||
|
||||
#=================================================
|
||||
# CHECK VERSION
|
||||
|
|
Loading…
Reference in a new issue