diff --git a/check_process b/check_process index 196377e..e95a35d 100644 --- a/check_process +++ b/check_process @@ -11,7 +11,6 @@ is_public=1 (PUBLIC|public=1|private=0) password="pass" single_user="true" - open_registration="true" max_blogs="1" federation="true" public_stats="true" diff --git a/conf/config.ini b/conf/config.ini index bd12e6e..ff1d501 100644 --- a/conf/config.ini +++ b/conf/config.ini @@ -26,7 +26,7 @@ theme = write disable_js = false webfonts = true single_user = __SINGLEUSER__ -open_registration = __OPENREGISTRATION__ +open_registration = min_username_len = 3 max_blogs = __MAXBLOGS__ federation = __FEDERATION__ diff --git a/manifest.json b/manifest.json index 94cf662..ec48b68 100644 --- a/manifest.json +++ b/manifest.json @@ -71,14 +71,6 @@ "fr": "Souhaitez vous un blog pour un seul utilisateur?" }, "default": true - }, - "name": "open_registration", - "type": "boolean", - "ask": { - "en": "Are registrations opened to all ?", - "fr": "Les inscriptions sont t'elles ouvertes ?" - }, - "default": true }, { "name": "max_blogs", diff --git a/scripts/install b/scripts/install index 4bb28d0..1bc52b1 100755 --- a/scripts/install +++ b/scripts/install @@ -43,7 +43,6 @@ is_public=$YNH_APP_ARG_IS_PUBLIC #language=$YNH_APP_ARG_LANGUAGE password=$YNH_APP_ARG_PASSWORD single_user=$YNH_APP_ARG_SINGLE_USER -open_registration=$YNH_APP_ARG_OPEN_REGISTRATION max_blogs=$YNH_APP_ARG_MAX_BLOGS federation=$YNH_APP_ARG_FEDERATION public_stats=$YNH_APP_ARG_PUBLIC_STATS @@ -95,7 +94,6 @@ ynh_app_setting_set $app admin $admin ynh_app_setting_set $app is_public $is_public #ynh_app_setting_set $app language $language ynh_app_setting_set $app single_user $single_user -ynh_app_setting_set $app open_registration $open_registration ynh_app_setting_set $app max_blogs $max_blogs ynh_app_setting_set $app federation $federation ynh_app_setting_set $app public_stats $public_stats @@ -273,7 +271,6 @@ ynh_replace_string "__DBPWD__" "$db_pwd" "$final_path/config.ini" ynh_replace_string "__PORT__" "$port" "$final_path/config.ini" ynh_replace_string "__DOMAIN_URL__" "https://$domain$path_url" "$final_path/config.ini" ynh_replace_string "__SINGLEUSER__" "$single_user" "$final_path/config.ini" -ynh_replace_string "__OPENREGISTRATION__" "$open_registration" "$final_path/config.ini" ynh_replace_string "__MAXBLOGS__" "$max_blogs" "$final_path/config.ini" ynh_replace_string "__FEDERATION__" "$federation" "$final_path/config.ini" ynh_replace_string "__PUBLICSTATS__" "$public_stats" "$final_path/config.ini"