mirror of
https://github.com/YunoHost-Apps/fittrackee_ynh.git
synced 2024-09-03 18:36:16 +02:00
upgrade to 0.7.15 + some tests/fixes
This commit is contained in:
parent
1e97f936d7
commit
3851b92fb5
5 changed files with 16 additions and 9 deletions
|
@ -30,7 +30,7 @@ services = ["__APP__", "__APP___workers"]
|
|||
ask.en = "Change weather provider"
|
||||
ask.fr = "Changer le fournisseur météo"
|
||||
type = "select"
|
||||
choices = ["", "darksky", "visualcrossing"]
|
||||
choices = ["", "visualcrossing"]
|
||||
default = "visualcrossing"
|
||||
help.en = "Change your weather provider by choosing one of the proposed ones"
|
||||
help.fr = "Changer votre fournisseur météo en choisissant un de ceux qui vous sont proposés"
|
||||
|
|
|
@ -5,7 +5,7 @@ name = "FitTrackee"
|
|||
description.en = "Self-hosted outdoor activity tracker 🚴"
|
||||
description.fr = "Traqueur d’activités extérieures auto-hébergé 🚴"
|
||||
|
||||
version = "0.7.14~ynh3"
|
||||
version = "0.7.15~ynh1"
|
||||
|
||||
maintainers = ["Thovi98"]
|
||||
|
||||
|
@ -17,7 +17,7 @@ admindoc = "https://samr1.github.io/FitTrackee"
|
|||
code = "https://github.com/SamR1/FitTrackee"
|
||||
|
||||
[integration]
|
||||
yunohost = ">= 11.1.13"
|
||||
yunohost = ">= 11.1.17"
|
||||
architectures = "all"
|
||||
multi_instance = true
|
||||
ldap = false
|
||||
|
@ -43,10 +43,10 @@ ram.runtime = "50M"
|
|||
[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"
|
||||
help.en = "As Darksky is deprecating his api, it is suggested to opt for Visual Crossing"
|
||||
help.fr = "Comme Darksky déprécie son API, il est suggéré d'opter pour Visual Crossing"
|
||||
help.en = "Since Fittrackee 0.7.15, only Visual Crossing is supported"
|
||||
help.fr = "Depuis Fittrackee 0.7.15, seul Visual Crossing est supporté"
|
||||
type = "select"
|
||||
choices = ["", "darksky", "visualcrossing"]
|
||||
choices = ["", "visualcrossing"]
|
||||
default = "visualcrossing"
|
||||
optional = true
|
||||
|
||||
|
|
|
@ -9,7 +9,9 @@
|
|||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
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")
|
||||
admin_password=$(ynh_user_get_info --username="$admin" --key="password")
|
||||
|
||||
#=================================================
|
||||
# LOGROTATE
|
||||
|
@ -68,6 +70,10 @@ 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 update $admin --set-admin true
|
||||
|
||||
#=================================================
|
||||
# System Configuration
|
||||
#=================================================
|
||||
|
|
|
@ -42,7 +42,7 @@ chown -R $app: "$install_dir"
|
|||
|
||||
pushd $install_dir
|
||||
mkdir -p .venv
|
||||
PIPENV_VENV_IN_PROJECT="enabled" PIPENV_SKIP_LOCK=true ynh_exec_warn_less python3 -m pipenv install fittrackee==$fittrackee_version python-dotenv
|
||||
PIPENV_VENV_IN_PROJECT="enabled" PIPENV_SKIP_LOCK=true ynh_exec_warn_less python3 -m pipenv install -U fittrackee==$fittrackee_version python-dotenv
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -15,4 +15,5 @@ test_format = 1.0
|
|||
# -------------------------------
|
||||
# Commits to test upgrade from
|
||||
# -------------------------------
|
||||
|
||||
|
||||
test_upgrade_from.852bf0d.name = "Upgrade from 0.7.14"
|
||||
|
|
Loading…
Reference in a new issue