diff --git a/conf/config.php b/conf/config.php index 1f8ea46..86a603a 100644 --- a/conf/config.php +++ b/conf/config.php @@ -20,8 +20,8 @@ define("SMTP_PORT", 25); define("SMTP_MAIL", "__APP__@__DOMAIN__"); define("SMTP_PASSWORD", ""); -define("CREATION_COMPTE", __CREATION_COMPTE__); -define("CONNEXION_COMPTE", __CONNEXION_COMPTE__); +define("CREATION_COMPTE", __CRE_COMPTE__); +define("CONNEXION_COMPTE", __CON_COMPTE__); define("CSV_SEP", "__SEPARATEUR_CSV__"); diff --git a/config_panel.toml b/config_panel.toml index df8c071..312542b 100644 --- a/config_panel.toml +++ b/config_panel.toml @@ -13,7 +13,7 @@ name = "Moncycle.app configuration" yes = "true" no = "false" help = "Don't disable account creation before creating one for yourself !" - bind = "CREATION_COMPTE:__INSTALL_DIR__/config.php" + bind = "CREA_COMPTE:__INSTALL_DIR__/config.php" [main.comptes.connexion_compte] ask.en = "Enable account connexion" @@ -22,7 +22,7 @@ name = "Moncycle.app configuration" default = "true" yes = "true" no = "false" - bind = "CONNEXION_COMPTE:__INSTALL_DIR__/config.php" + bind = "CON_COMPTE:__INSTALL_DIR__/config.php" [main.export] name = "export" diff --git a/scripts/install b/scripts/install index 357c0ab..82c509c 100755 --- a/scripts/install +++ b/scripts/install @@ -9,12 +9,12 @@ source _common.sh source /usr/share/yunohost/helpers -creation_compte=true -connexion_compte=true +cre_compte=true +con_compte=true separateur_csv=";" -ynh_app_setting_set --app=$app --key=creation_compte --value=$creation_compte -ynh_app_setting_set --app=$app --key=connexion_compte --value=$connexion_compte +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 #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 036ce37..193c2f8 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -16,15 +16,15 @@ 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 +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 "${connexion_compte:-}" ]; then - connexion_compte=true - ynh_app_setting_set --app=$app --key=connexion_compte --value=$connexion_compte +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