diff --git a/conf/config.php b/conf/config.php index 6e4f591..f4ced39 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", true); +define("CONNEXION_COMPTE", true); define("CSV_SEP", ";"); diff --git a/config_panel.toml b/config_panel.toml.example similarity index 100% rename from config_panel.toml rename to config_panel.toml.example diff --git a/scripts/install b/scripts/install index 2a84339..7b55452 100755 --- a/scripts/install +++ b/scripts/install @@ -9,14 +9,6 @@ source _common.sh source /usr/share/yunohost/helpers -creation_compte="true" -connexion_compte="true" -#csv_sep=";" - -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=csv_sep --value=$csv_sep - #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 883dd58..3d3f0de 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -9,31 +9,6 @@ source _common.sh source /usr/share/yunohost/helpers -#================================================= -# CHECK VERSION -#================================================= - -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 "${csv_sep:-}" ]; then -# csv_sep=";" -# ynh_app_setting_set --app=$app --key=csv_sep --value=$csv_sep -#fi - - #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #=================================================