1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/writefreely_ynh.git synced 2024-09-03 20:36:02 +02:00

remove open_registration

This commit is contained in:
yalh76 2019-02-10 16:36:06 +01:00
parent 87c751c231
commit fd77ee0873
4 changed files with 1 additions and 13 deletions

View file

@ -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"

View file

@ -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__

View file

@ -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",

View file

@ -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"