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

Fix filesize as setting

This commit is contained in:
ewilly 2016-04-26 20:59:30 +02:00
parent 0e6d32e4f7
commit 3130eaa185

View file

@ -11,6 +11,13 @@ app=bozon
path=$(sudo yunohost app setting $app path)
stable=$(sudo yunohost app setting $app version)
is_public=$(sudo yunohost app setting $app is_public)
filesize=$(sudo yunohost app setting $app filesize)
if [ "${#filesize}" -eq 0 ]
then # in old script filesize was not saved as an setting
domain=$(sudo yunohost app setting $app domain)
filesize=$(cat /etc/nginx/conf.d/$domain.d/$app.conf | grep -Po 'client_max_body_size \K.*(?=;)')
sudo yunohost app setting $app filesize -v "$filesize"
fi
# definie useful vars
parent_path=/var/www