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