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

remove local_timeline

This commit is contained in:
yalh76 2019-02-10 16:52:38 +01:00
parent 51b3aeb4b5
commit fc11c60347
5 changed files with 3 additions and 15 deletions

View file

@ -9,8 +9,7 @@
admin="john" (USER)
is_public=1 (PUBLIC|public=1|private=0)
password="pass"
single_user="true"
local_timeline="true"
single_user="true"
; Checks
pkg_linter=1
setup_sub_dir=0

View file

@ -32,5 +32,5 @@ max_blogs = 4
federation = true
public_stats = true
private = false
local_timeline = __LOCALTIMELINE__
local_timeline = true
user_invites =

View file

@ -71,15 +71,6 @@
"fr": "Souhaitez vous un blog pour un seul utilisateur?"
},
"default": true
},
{
"name": "local_timeline",
"type": "boolean",
"ask": {
"en": "Do you want to add a local timeline ?",
"fr": "Voulez vous afficher une timeline locale ?"
},
"default": false
}
]
}

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
local_timeline=$YNH_APP_ARG_LOCAL_TIMELINE
## Bypass package_checker name not compatible with writefreely
if [ "$admin" = "package_checker" ]
@ -90,7 +89,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 local_timeline $local_timeline
#=================================================
# STANDARD MODIFICATIONS
@ -263,7 +261,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 "__LOCALTIMELINE__" "$local_timeline" "$final_path/config.ini"
#=================================================
# STORE THE CONFIG FILE CHECKSUM

View file

@ -42,6 +42,7 @@ 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
ynh_app_setting_delete $app local_timeline
#=================================================
# CHECK VERSION