Merge pull request #242 from YunoHost/bump-minimum-requirements

Bump minimum requirements and clean php
This commit is contained in:
eric_G 2025-02-02 15:29:55 +01:00 committed by GitHub
commit 184f76783e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 9 additions and 10 deletions

View file

@ -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

View file

@ -22,7 +22,4 @@ location __PATH__/ {
fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_param SCRIPT_FILENAME $request_filename;
} }
### End of PHP configuration part ### End of PHP configuration part
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
} }

View file

@ -32,7 +32,7 @@ cpe = "???"
fund = "???" fund = "???"
[integration] [integration]
yunohost = ">= 11.2.30" yunohost = ">= 12.0.9"
helpers_version = "2.1" helpers_version = "2.1"
# FIXME: can be replaced by a list of supported archs using the dpkg --print-architecture nomenclature (amd64/i386/armhf/arm64), for example: ["amd64", "i386"] # FIXME: can be replaced by a list of supported archs using the dpkg --print-architecture nomenclature (amd64/i386/armhf/arm64), for example: ["amd64", "i386"]
architectures = "all" architectures = "all"
@ -129,7 +129,7 @@ ram.runtime = "50M"
[resources.apt] [resources.apt]
# This will automatically install/uninstall the following apt packages # This will automatically install/uninstall the following apt packages
# and implicitly define the $phpversion setting as 8.0 (if phpX.Y-foobar dependencies are listed) # and implicitly define the $phpversion setting as 8.0 (if phpX.Y-foobar dependencies are listed)
packages = "mariadb-server, deb1, deb2, php8.0-foo, php8.0-bar" packages = "mariadb-server, deb1, deb2, php8.3-foo, php8.3-bar"
[resources.database] [resources.database]
# This will automatically provision/deprovison a MySQL DB and store the corresponding credentials in settings $db_user, $db_name, $db_pwd # This will automatically provision/deprovison a MySQL DB and store the corresponding credentials in settings $db_user, $db_name, $db_pwd

View file

@ -35,6 +35,9 @@ source /usr/share/yunohost/helpers
foo="bar" foo="bar"
ynh_app_setting_set --key=foo --value=$foo 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 # DOWNLOAD, CHECK AND UNPACK SOURCE
#================================================= #=================================================

View file

@ -30,7 +30,10 @@ ynh_systemctl --service="$app" --action="stop"
#================================================= #=================================================
# ENSURE DOWNWARD COMPATIBILITY # 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* ### 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 ### of what you may want to do in some cases (e.g. a setting was not defined on