1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/bozon_ynh.git synced 2024-09-03 18:16:09 +02:00

Upload limit #4 (don't need anymore bc)

This commit is contained in:
ewilly 2016-04-16 20:43:00 +02:00
parent 53507c30a7
commit 616d7c42b2

View file

@ -46,7 +46,7 @@ sudo rm $parent_path/master.zip
sudo mv $parent_path/BoZoN-master $parent_path/$app
# add required packages
sudo apt-get install php5-curl php5-gd bc
sudo apt-get install php5-curl php5-gd
# copy files to final folder and set permissions
sudo find $final_path -type f -name ".htaccess" | xargs sudo rm
@ -69,7 +69,7 @@ sudo chown -R www-data: $data_path/thumbs
# configure nginx settings
## file upload size limit
postsize=$(echo "${filesize%?} + 0.1" | bc)$(echo ${filesize: -1})
postsize=$(echo "${filesize%?}.1${filesize: -1}")
sudo sed -i "s@YNH_FILE_SIZE@$filesize@g" ../conf/nginx.conf
sudo sed -i "s@YNH_POST_SIZE@$postsize@g" ../conf/nginx.conf
## path