From f51a66b2469db7b09ad1c74173fa447326ec2318 Mon Sep 17 00:00:00 2001 From: eric_G <46165813+ericgaspar@users.noreply.github.com> Date: Wed, 22 Jan 2025 09:54:07 +0100 Subject: [PATCH] cleaning --- conf/extra_php-fpm.conf | 4 ---- scripts/install | 3 +++ scripts/upgrade | 5 ++++- 3 files changed, 7 insertions(+), 5 deletions(-) delete mode 100644 conf/extra_php-fpm.conf diff --git a/conf/extra_php-fpm.conf b/conf/extra_php-fpm.conf deleted file mode 100644 index 700c37c..0000000 --- a/conf/extra_php-fpm.conf +++ /dev/null @@ -1,4 +0,0 @@ -; Additional php.ini defines, specific to this pool of workers. - -php_admin_value[upload_max_filesize] = 50M -php_admin_value[post_max_size] = 50M diff --git a/scripts/install b/scripts/install index ebb82ea..fa67130 100755 --- a/scripts/install +++ b/scripts/install @@ -35,6 +35,9 @@ source /usr/share/yunohost/helpers foo="bar" ynh_app_setting_set --key=foo --value=$foo +ynh_app_setting_set --key=php_upload_max_filesize --value=50M +ynh_app_setting_set --key=php_post_max_size --value=50M + #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 957e129..2401955 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -30,7 +30,10 @@ ynh_systemctl --service="$app" --action="stop" #================================================= # ENSURE DOWNWARD COMPATIBILITY #================================================= -#ynh_script_progression "Ensuring downward compatibility..." +ynh_script_progression "Ensuring downward compatibility..." + +ynh_app_setting_set_default --key=php_upload_max_filesize --value=50M +ynh_app_setting_set_default --key=php_post_max_size --value=50M ### N.B. : the following setting migration snippets are provided as *EXAMPLES* ### of what you may want to do in some cases (e.g. a setting was not defined on