From 15c458c9826002e4af7d615216e6be6f20b4a549 Mon Sep 17 00:00:00 2001 From: lapineige Date: Tue, 2 May 2023 13:42:26 +0200 Subject: [PATCH] MEDIA_UPLOAD_SIZE parameter in .env --- scripts/install | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install b/scripts/install index 286b42d..6f6da0f 100644 --- a/scripts/install +++ b/scripts/install @@ -37,6 +37,9 @@ ynh_add_nginx_config #================================================= ynh_script_progression --message="Adding a configuration file..." --weight=1 +# max file upload size +MEDIA_UPLOAD_SIZE="${MEDIA_UPLOAD_SIZE:0:2}000000" # convert the MB argument in bytes + ynh_add_config --template="../conf/.env" --destination="$install_dir/.env" chmod 400 "$install_dir/.env"