mirror of
https://github.com/YunoHost-Apps/moncycle_ynh.git
synced 2024-09-03 19:46:16 +02:00
Test
This commit is contained in:
parent
6eb45a5dfa
commit
ad1e075520
3 changed files with 25 additions and 2 deletions
|
@ -1,8 +1,10 @@
|
|||
version = "1.0"
|
||||
[main]
|
||||
name = "Moncycle.app configuration"
|
||||
|
||||
[main.comptes]
|
||||
name = "comptes"
|
||||
|
||||
[main.comptes.creation_compte]
|
||||
ask.en = "Enable account creation"
|
||||
ask.fr = "Permettre la création de nouveaux comptes"
|
||||
|
@ -12,6 +14,7 @@ name = "Moncycle.app configuration"
|
|||
no = "false"
|
||||
help = "Don't disable account creation before creating one for yourself !"
|
||||
bind = "CREATION_COMPTE:__INSTALL_DIR__/config.php"
|
||||
|
||||
[main.comptes.connexion_compte]
|
||||
ask.en = "Enable account connexion"
|
||||
ask.fr = "Permettre la connexion aux comptes"
|
||||
|
@ -20,8 +23,10 @@ name = "Moncycle.app configuration"
|
|||
yes = "true"
|
||||
no = "false"
|
||||
bind = "CONNEXION_COMPTE:__INSTALL_DIR__/config.php"
|
||||
|
||||
[main.export]
|
||||
name = "export"
|
||||
|
||||
[main.export.separateur_csv]
|
||||
ask.en = "Separator for data export in csv format"
|
||||
ask.fr = "Séparateur pour l'export des données au format csv"
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
creation_compte="true"
|
||||
connexion_compte="true"
|
||||
creation_compte=true
|
||||
connexion_compte=true
|
||||
separateur_csv=";"
|
||||
|
||||
ynh_app_setting_set --app=$app --key=creation_compte --value=$creation_compte
|
||||
|
|
|
@ -15,6 +15,24 @@ source /usr/share/yunohost/helpers
|
|||
|
||||
upgrade_type=$(ynh_check_app_version_changed)
|
||||
|
||||
# If creation_compte doesn't exist, create it
|
||||
if [ -z "${creation_compte:-}" ]; then
|
||||
creation_compte=true
|
||||
ynh_app_setting_set --app=$app --key=creation_compte --value=$creation_compte
|
||||
fi
|
||||
|
||||
# If connexion_compte doesn't exist, create it
|
||||
if [ -z "${connexion_compte:-}" ]; then
|
||||
connexion_compte=true
|
||||
ynh_app_setting_set --app=$app --key=connexion_compte --value=$connexion_compte
|
||||
fi
|
||||
|
||||
# If separateur_csv doesn't exist, create it
|
||||
if [ -z "${separateur_csv:-}" ]; then
|
||||
separateur_csv=";"
|
||||
ynh_app_setting_set --app=$app --key=separateur_csv --value=$separateur_csv
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue