From b225edb4da9f02b02bf9123e1daf2fb6e08d94a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 18 Apr 2023 13:43:15 +0200 Subject: [PATCH] fix --- conf/lufi.conf.template | 2 +- scripts/install | 5 ----- scripts/upgrade | 5 ----- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/conf/lufi.conf.template b/conf/lufi.conf.template index 9f990d3..6dc9d62 100644 --- a/conf/lufi.conf.template +++ b/conf/lufi.conf.template @@ -59,7 +59,7 @@ # Max file size, in octets # You can write it 100*1024*1024 # optional, no default - __MAX_SIZE_SET__max_file_size => __MAX_FILE_SIZE__*1024*1024, + max_file_size => __MAX_FILE_SIZE__*1024*1024, # If you want to have piwik statistics, provide a piwik image tracker # Only the image tracker is allowed, no javascript diff --git a/scripts/install b/scripts/install index 2a4051d..a19afee 100644 --- a/scripts/install +++ b/scripts/install @@ -54,11 +54,6 @@ then ldap="" fi -max_size_set="" -if [ $max_file_size -eq 0 ]; then # Comment the limitation line if no limit - max_size_set="#" -fi - ynh_add_config --template="../conf/lufi.conf.template" --destination="$install_dir/lufi.conf" chmod 600 $install_dir/lufi.conf diff --git a/scripts/upgrade b/scripts/upgrade index 0481ec4..ec86052 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -70,11 +70,6 @@ then ldap="" fi -max_size_set="" -if [ $max_file_size -eq 0 ]; then # Comment the limitation line if no limit - max_size_set="#" -fi - ynh_add_config --template="../conf/lufi.conf.template" --destination="$install_dir/lufi.conf" chmod 600 $install_dir/lufi.conf