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

remove public_state and private parameters

This commit is contained in:
yalh76 2019-02-10 16:50:20 +01:00
parent 417523991b
commit 51b3aeb4b5
5 changed files with 3 additions and 29 deletions

View file

@ -7,12 +7,9 @@
; Manifest
domain="domain.tld" (DOMAIN)
admin="john" (USER)
is_public=1 (PUBLIC|public=1|private=0)
password="pass"
single_user="true"
public_stats="true"
private="false"
local_timeline="true"
; Checks
pkg_linter=1

View file

@ -30,7 +30,7 @@ open_registration = true
min_username_len = 3
max_blogs = 4
federation = true
public_stats = __PUBLICSTATS__
private = __PRIVATE__
public_stats = true
private = false
local_timeline = __LOCALTIMELINE__
user_invites =

View file

@ -72,24 +72,6 @@
},
"default": true
},
{
"name": "public_stats",
"type": "boolean",
"ask": {
"en": "Are federation stats public ?",
"fr": "Est-ce les statistiques de federation sont publiques ?"
},
"default": true
},
{
"name": "private",
"type": "boolean",
"ask": {
"en": "Are the instance metadata private ?",
"fr": "Est-ce les metadatas de l'instance sont privée ?"
},
"default": false
},
{
"name": "local_timeline",
"type": "boolean",

View file

@ -43,8 +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
public_stats=$YNH_APP_ARG_PUBLIC_STATS
private=$YNH_APP_ARG_PRIVATE
local_timeline=$YNH_APP_ARG_LOCAL_TIMELINE
## Bypass package_checker name not compatible with writefreely
@ -92,8 +90,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 public_stats $public_stats
ynh_app_setting_set $app private $private
ynh_app_setting_set $app local_timeline $local_timeline
#=================================================
@ -267,8 +263,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 "__PUBLICSTATS__" "$public_stats" "$final_path/config.ini"
ynh_replace_string "__PRIVATE__" "$private" "$final_path/config.ini"
ynh_replace_string "__LOCALTIMELINE__" "$local_timeline" "$final_path/config.ini"
#=================================================

View file

@ -41,6 +41,7 @@ ynh_app_setting_delete $app site_description
ynh_app_setting_delete $app open_registration
ynh_app_setting_delete $app max_blogs
ynh_app_setting_delete $app federation
ynh_app_setting_delete $app public_stats
#=================================================
# CHECK VERSION