1
0
Fork 0
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:
Thomas 2023-04-13 19:51:18 +02:00 committed by GitHub
parent 3d1275a430
commit e7fe9951db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 4 deletions

View file

@ -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 lutilisateur 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"

View file

@ -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

View file

@ -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

View file

@ -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