diff --git a/scripts/install b/scripts/install index 6cce381..bc6f118 100644 --- a/scripts/install +++ b/scripts/install @@ -30,6 +30,13 @@ app=$YNH_APP_INSTANCE_NAME set_motd="" 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 @@ -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=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_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 diff --git a/scripts/upgrade b/scripts/upgrade index 4085044..c20ae68 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -79,6 +79,41 @@ if [ -z "$enable_registration" ]; then ynh_app_setting_set --app=$app --key=enable_registration --value=$enable_registration 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 if ynh_legacy_permissions_exists; then ynh_legacy_permissions_delete_all