1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00
This commit is contained in:
Éric Gaspar 2023-03-06 17:51:13 +01:00
parent e670a5cde2
commit 3b8c0efd97
2 changed files with 7 additions and 9 deletions

View file

@ -49,6 +49,10 @@ ram.runtime = "50M"
[resources.permissions]
main.url = "/"
ics.url = "/?controller=ICalendarController"
ics.show_tile = false
ics.allowed = "visitors"
[resources.apt]
packages = "mariadb-server php8.0-fpm php8.0-opcache php8.0-curl php8.0-gd php8.0-zip php8.0-xml php8.0-mbstring php8.0-mysql php8.0-ldap"

View file

@ -23,29 +23,23 @@ upgrade_type=$(ynh_check_app_version_changed)
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
# If fpm_footprint doesn't exist, create it
if [ -z "$fpm_footprint" ]; then
if [ -z "${fpm_footprint:-}" ]; then
fpm_footprint=low
ynh_app_setting_set --app=$app --key=fpm_footprint --value=$fpm_footprint
fi
# If fpm_free_footprint doesn't exist, create it
if [ -z "$fpm_free_footprint" ]; then
if [ -z "${fpm_free_footprint:-}" ]; then
fpm_free_footprint=0
ynh_app_setting_set --app=$app --key=fpm_free_footprint --value=$fpm_free_footprint
fi
# If fpm_usage doesn't exist, create it
if [ -z "$fpm_usage" ]; then
if [ -z "${fpm_usage:-}" ]; then
fpm_usage=low
ynh_app_setting_set --app=$app --key=fpm_usage --value=$fpm_usage
fi
# Create a permission if needed
#REMOVEME? if ! ynh_permission_exists --permission="ics"; then
#REMOVEME? ynh_permission_create --permission="ics" --url="/?controller=ICalendarController" --allowed="visitors" --label="ICS Public access"
#fi
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================