1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/vikunja_ynh.git synced 2024-09-03 18:06:26 +02:00

Install & Upgrade script

This commit is contained in:
AllanNICOLE 2022-08-20 22:21:33 +02:00
parent fd0b3968bd
commit 2a7189dc67
2 changed files with 49 additions and 0 deletions

View file

@ -30,6 +30,13 @@ app=$YNH_APP_INSTANCE_NAME
set_motd="" set_motd=""
enable_registration="true" enable_registration="true"
enable_linksharing="true"
enable_taskattachments="true"
enable_taskcomments="true"
enable_emailreminders="true"
enable_userdeletion="true"
maxavatarsize=1024
maxitemsperpage=50
#================================================= #=================================================
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
@ -52,6 +59,13 @@ 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=path --value=$path_url
ynh_app_setting_set --app=$app --key=set_motd --value=$set_motd ynh_app_setting_set --app=$app --key=set_motd --value=$set_motd
ynh_app_setting_set --app=$app --key=enable_registration --value=$enable_registration ynh_app_setting_set --app=$app --key=enable_registration --value=$enable_registration
ynh_app_setting_set --app=$app --key=enable_linksharing --value=$enable_linksharing
ynh_app_setting_set --app=$app --key=enable_taskattachments --value=$enable_taskattachments
ynh_app_setting_set --app=$app --key=enable_taskcomments --value=$enable_taskcomments
ynh_app_setting_set --app=$app --key=enable_emailreminders --value=$enable_emailreminders
ynh_app_setting_set --app=$app --key=enable_userdeletion --value=$enable_userdeletion
ynh_app_setting_set --app=$app --key=maxavatarsize --value=$maxavatarsize
ynh_app_setting_set --app=$app --key=maxitemsperpage --value=$maxitemsperpage
#================================================= #=================================================
# STANDARD MODIFICATIONS # STANDARD MODIFICATIONS

View file

@ -79,6 +79,41 @@ if [ -z "$enable_registration" ]; then
ynh_app_setting_set --app=$app --key=enable_registration --value=$enable_registration ynh_app_setting_set --app=$app --key=enable_registration --value=$enable_registration
fi fi
if [ -z "$enable_linksharing" ]; then
enable_linksharing="true"
ynh_app_setting_set --app=$app --key=enable_linksharing --value=$enable_linksharing
fi
if [ -z "$enable_taskattachments" ]; then
enable_taskattachments="true"
ynh_app_setting_set --app=$app --key=enable_taskattachments --value=$enable_taskattachments
fi
if [ -z "$enable_taskcomments" ]; then
enable_taskcomments="true"
ynh_app_setting_set --app=$app --key=enable_taskcomments --value=$enable_taskcomments
fi
if [ -z "$enable_emailreminders" ]; then
enable_emailreminders="true"
ynh_app_setting_set --app=$app --key=enable_emailreminders --value=$enable_emailreminders
fi
if [ -z "$enable_userdeletion" ]; then
enable_userdeletion="true"
ynh_app_setting_set --app=$app --key=enable_userdeletion --value=$enable_userdeletion
fi
if [ -z "$maxavatarsize" ]; then
maxavatarsize="true"
ynh_app_setting_set --app=$app --key=maxavatarsize --value=$maxavatarsize
fi
if [ -z "$maxitemsperpage" ]; then
maxitemsperpage="true"
ynh_app_setting_set --app=$app --key=maxitemsperpage --value=$maxitemsperpage
fi
# Cleaning legacy permissions # Cleaning legacy permissions
if ynh_legacy_permissions_exists; then if ynh_legacy_permissions_exists; then
ynh_legacy_permissions_delete_all ynh_legacy_permissions_delete_all