mirror of
https://github.com/YunoHost-Apps/focalboard_ynh.git
synced 2024-09-03 18:36:19 +02:00
Fix
This commit is contained in:
parent
e6ecff7ee8
commit
d3809893f4
4 changed files with 8 additions and 8 deletions
|
@ -11,6 +11,6 @@
|
|||
"telemetry": false,
|
||||
"session_expire_time": 2592000,
|
||||
"session_refresh_time": 18000,
|
||||
"enablePublicSharedBoards": __ENABLE_PUBLIC_SHARED_BOARDES__,
|
||||
"enablePublicSharedBoards": __ENABLE_PUBLIC_BOARDS__,
|
||||
"localOnly": false
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ services = ["__APP__"]
|
|||
[main.config]
|
||||
name = "Configuration Options"
|
||||
|
||||
[main.config.enablePublicSharedBoards]
|
||||
[main.config.enable_public_boards]
|
||||
ask = "Enable public boards"
|
||||
type = "boolean"
|
||||
yes = "true"
|
||||
|
|
|
@ -30,7 +30,7 @@ is_public=$YNH_APP_ARG_IS_PUBLIC
|
|||
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
||||
enable_public_shared_boards="false"
|
||||
enable_public_boards="false"
|
||||
|
||||
#=================================================
|
||||
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
|
||||
|
@ -52,7 +52,7 @@ ynh_script_progression --message="Storing installation settings..." --weight=5
|
|||
|
||||
ynh_app_setting_set --app=$app --key=domain --value=$domain
|
||||
ynh_app_setting_set --app=$app --key=path --value=$path_url
|
||||
ynh_app_setting_set --app=$app --key=enable_public_shared_boards --value=$enable_public_shared_boards
|
||||
ynh_app_setting_set --app=$app --key=enable_public_boards --value=$enable_public_boards
|
||||
|
||||
#=================================================
|
||||
# STANDARD MODIFICATIONS
|
||||
|
|
|
@ -23,7 +23,7 @@ db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
|||
port=$(ynh_app_setting_get --app=$app --key=port)
|
||||
files_path=$(ynh_app_setting_get --app=$app --key=files_path)
|
||||
|
||||
enable_public_shared_boards=$(ynh_app_setting_get --app=$app --key=enable_public_shared_boards)
|
||||
enable_public_boards=$(ynh_app_setting_get --app=$app --key=enable_public_boards)
|
||||
|
||||
#=================================================
|
||||
# CHECK VERSION
|
||||
|
@ -36,9 +36,9 @@ upgrade_type=$(ynh_check_app_version_changed)
|
|||
#=================================================
|
||||
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
||||
|
||||
if [ -z "$enable_public_shared_boards" ]; then
|
||||
enable_public_shared_boards="true"
|
||||
ynh_app_setting_set --app=$app --key=enable_public_shared_boards --value=$enable_public_shared_boards
|
||||
if [ -z "$enable_public_boards" ]; then
|
||||
enable_public_boards="false"
|
||||
ynh_app_setting_set --app=$app --key=enable_public_boards --value=$enable_public_boards
|
||||
fi
|
||||
|
||||
# Cleaning legacy permissions
|
||||
|
|
Loading…
Add table
Reference in a new issue