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
0b7b933207
commit
94045d1f95
3 changed files with 3 additions and 29 deletions
|
@ -5,7 +5,7 @@ name = "Moncycle.app configuration"
|
|||
[main.comptes]
|
||||
name = "comptes"
|
||||
|
||||
[main.comptes.cre_compte]
|
||||
[main.comptes.creation_compte]
|
||||
ask.en = "Enable account creation"
|
||||
ask.fr = "Permettre la création de nouveaux comptes"
|
||||
type = "boolean"
|
||||
|
@ -15,7 +15,7 @@ name = "Moncycle.app configuration"
|
|||
help = "Don't disable account creation before creating one for yourself !"
|
||||
bind = "CREATION_COMPTE:__INSTALL_DIR__/config.php"
|
||||
|
||||
[main.comptes.con_compte]
|
||||
[main.comptes.connexion_compte]
|
||||
ask.en = "Enable account connexion"
|
||||
ask.fr = "Permettre la connexion aux comptes"
|
||||
type = "boolean"
|
||||
|
@ -27,7 +27,7 @@ name = "Moncycle.app configuration"
|
|||
[main.export]
|
||||
name = "export"
|
||||
|
||||
[main.export.separateur_csv]
|
||||
[main.export.csv_sep]
|
||||
ask.en = "Separator for data export in csv format"
|
||||
ask.fr = "Séparateur pour l'export des données au format csv"
|
||||
type = "string"
|
||||
|
|
|
@ -9,14 +9,6 @@
|
|||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
cre_compte=true
|
||||
con_compte=true
|
||||
separateur_csv=";"
|
||||
|
||||
ynh_app_setting_set --app=$app --key=cre_compte --value=$cre_compte
|
||||
ynh_app_setting_set --app=$app --key=con_compte --value=$con_compte
|
||||
ynh_app_setting_set --app=$app --key=separateur_csv --value=$separateur_csv
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
|
|
@ -15,24 +15,6 @@ source /usr/share/yunohost/helpers
|
|||
|
||||
upgrade_type=$(ynh_check_app_version_changed)
|
||||
|
||||
# If creation_compte doesn't exist, create it
|
||||
if [ -z "${cre_compte:-}" ]; then
|
||||
cre_compte=true
|
||||
ynh_app_setting_set --app=$app --key=cre_compte --value=$cre_compte
|
||||
fi
|
||||
|
||||
# If connexion_compte doesn't exist, create it
|
||||
if [ -z "${con_compte:-}" ]; then
|
||||
con_compte=true
|
||||
ynh_app_setting_set --app=$app --key=con_compte --value=$con_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…
Add table
Reference in a new issue